hadoop-layout.sh.example 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #!/usr/bin/env bash
  2. # Copyright 2014 The Apache Software Foundation
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one
  5. # or more contributor license agreements. See the NOTICE file
  6. # distributed with this work for additional information
  7. # regarding copyright ownership. The ASF licenses this file
  8. # to you under the Apache License, Version 2.0 (the
  9. # "License"); you may not use this file except in compliance
  10. # with the License. You may obtain a copy of the License at
  11. #
  12. # http://www.apache.org/licenses/LICENSE-2.0
  13. #
  14. # Unless required by applicable law or agreed to in writing, software
  15. # distributed under the License is distributed on an "AS IS" BASIS,
  16. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. # See the License for the specific language governing permissions and
  18. # limitations under the License.
  19. ##
  20. ## VENDORS!
  21. ##
  22. ## This is where you can redefine the layout of Hadoop directories
  23. ## and expect to be reasonably compatible. Needless to say, this
  24. ## is expert level stuff and one needs to tread carefully.
  25. ##
  26. ## If you move HADOOP_LIBEXEC_DIR from some location that
  27. ## isn't bin/../libexec, you MUST define either HADOOP_LIBEXEC_DIR
  28. ## or have HADOOP_HOME/libexec/hadoop-config.sh and
  29. ## HADOOP_HOME/libexec/hadoop-layout.sh (this file) exist.
  30. ## NOTE:
  31. ##
  32. ## hadoop-functions.sh gets executed BEFORE this file. So you can
  33. ## redefine all of those functions here.
  34. ##
  35. ## *-env.sh get executed AFTER this file but generally too late to
  36. ## override the settings (but not the functions!) here. However, this
  37. ## also means you cannot use things like HADOOP_CONF_DIR for these
  38. ## definitions.
  39. ####
  40. # Common disk layout
  41. ####
  42. # Default location for the common/core Hadoop project
  43. # export HADOOP_COMMON_HOME=${HADOOP_HOME}
  44. # Relative locations where components under HADOOP_COMMON_HOME are located
  45. # export HADOOP_COMMON_DIR="share/hadoop/common"
  46. # export HADOOP_COMMON_LIB_JARS_DIR="share/hadoop/common/lib"
  47. # export HADOOP_COMMON_LIB_NATIVE_DIR="lib/native"
  48. ####
  49. # HDFS disk layout
  50. ####
  51. # Default location for the HDFS subproject
  52. # export HADOOP_HDFS_HOME=${HADOOP_HOME}
  53. # Relative locations where components under HADOOP_HDFS_HOME are located
  54. # export HDFS_DIR="share/hadoop/hdfs"
  55. # export HDFS_LIB_JARS_DIR="share/hadoop/hdfs/lib"
  56. ####
  57. # YARN disk layout
  58. ####
  59. # Default location for the YARN subproject
  60. # export HADOOP_YARN_HOME=${HADOOP_HOME}
  61. # Relative locations where components under HADOOP_YARN_HOME are located
  62. # export YARN_DIR="share/hadoop/yarn"
  63. # export YARN_LIB_JARS_DIR="share/hadoop/yarn/lib"
  64. ####
  65. # MapReduce disk layout
  66. ####
  67. # Default location for the MapReduce subproject
  68. # export HADOOP_MAPRED_HOME=${HADOOP_HOME}
  69. # Relative locations where components under HADOOP_MAPRED_HOME are located
  70. # export MAPRED_DIR="share/hadoop/mapreduce"
  71. # export MAPRED_LIB_JARS_DIR="share/hadoop/mapreduce/lib"
  72. ####
  73. # Misc paths
  74. ####
  75. # This is where things like distcp, S3, and other things live
  76. # note that this path only gets added for certain commands and not
  77. # part of the general classpath unless HADOOP_OPTIONAL_TOOLS is used
  78. # to configure them in
  79. # export HADOOP_TOOLS_HOME=${HADOOP_HOME}
  80. # export HADOOP_TOOLS_DIR=${HADOOP_TOOLS_DIR:-"share/hadoop/tools"}
  81. # export HADOOP_TOOLS_LIB_JARS_DIR=${HADOOP_TOOLS_LIB_JARS_DIR:-"${HADOOP_TOOLS_DIR}/lib"}