hadoop-layout.sh.example 3.0 KB

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