mapred-env.sh 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ##
  16. ## THIS FILE ACTS AS AN OVERRIDE FOR hadoop-env.sh FOR ALL
  17. ## WORK DONE BY THE mapred AND RELATED COMMANDS.
  18. ##
  19. ## Precedence rules:
  20. ##
  21. ## mapred-env.sh > hadoop-env.sh > hard-coded defaults
  22. ##
  23. ## MAPRED_xyz > HADOOP_xyz > hard-coded defaults
  24. ##
  25. ###
  26. # Generic settings for MapReduce
  27. ###
  28. #Override the log4j settings for all MR apps
  29. # Java property: hadoop.root.logger
  30. # export MAPRED_ROOT_LOGGER="INFO,console"
  31. # Override Hadoop's log directory & file
  32. # Java property: hadoop.log.dir
  33. # export HADOOP_MAPRED_LOG_DIR=""
  34. # Override Hadoop's pid directory
  35. # export HADOOP_MAPRED_PID_DIR=
  36. # Override Hadoop's identity string. $USER by default.
  37. # This is used in writing log and pid files, so keep that in mind!
  38. # Java property: hadoop.id.str
  39. # export HADOOP_MAPRED_IDENT_STRING=$USER
  40. # Override Hadoop's process priority
  41. # Note that sub-processes will also run at this level!
  42. # export HADOOP_MAPRED_NICENESS=0
  43. ###
  44. # Job History Server specific parameters
  45. ###
  46. # Specify the max heapsize for the Job History Server using a numerical value
  47. # in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
  48. # the value to 1000.
  49. # This value will be overridden by an Xmx setting specified in either
  50. # MAPRED_OPTS, HADOOP_OPTS, and/or HADOOP_JOB_HISTORYSERVER_OPTS.
  51. # If not specified, the default value will be picked from either HADOOP_HEAPSIZE
  52. # or the built-in default.
  53. #
  54. #export HADOOP_JOB_HISTORYSERVER_HEAPSIZE=1000
  55. # Specify the JVM options to be used when starting the ResourceManager.
  56. # These options will be appended to the options specified as YARN_OPTS
  57. # and therefore may override any similar flags set in YARN_OPTS
  58. #export HADOOP_JOB_HISTORYSERVER_OPTS=
  59. # Specify the log4j settings for the JobHistoryServer
  60. # Java property: hadoop.root.logger
  61. #export HADOOP_JHS_LOGGER=INFO,RFA