mapred-env.sh 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # export MAPRED_ROOT_LOGGER="INFO,console"
  30. # Override Hadoop's log directory & file
  31. # export HADOOP_MAPRED_LOG_DIR=""
  32. # Override Hadoop's pid directory
  33. # export HADOOP_MAPRED_PID_DIR=
  34. # Override Hadoop's identity string. $USER by default.
  35. # This is used in writing log and pid files, so keep that in mind!
  36. # export HADOOP_MAPRED_IDENT_STRING=$USER
  37. # Override Hadoop's process priority
  38. # Note that sub-processes will also run at this level!
  39. # export HADOOP_MAPRED_NICENESS=0
  40. ###
  41. # Job History Server specific parameters
  42. ###
  43. # Specify the max heapsize for the Job History Server using a numerical value
  44. # in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
  45. # the value to 1000.
  46. # This value will be overridden by an Xmx setting specified in either
  47. # MAPRED_OPTS, HADOOP_OPTS, and/or HADOOP_JOB_HISTORYSERVER_OPTS.
  48. # If not specified, the default value will be picked from either YARN_HEAPMAX
  49. # or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two.
  50. #
  51. #export HADOOP_JOB_HISTORYSERVER_HEAPSIZE=1000
  52. # Specify the JVM options to be used when starting the ResourceManager.
  53. # These options will be appended to the options specified as YARN_OPTS
  54. # and therefore may override any similar flags set in YARN_OPTS
  55. #export HADOOP_JOB_HISTORYSERVER_OPTS=
  56. # Specify the log4j settings for the JobHistoryServer
  57. #export HADOOP_JHS_LOGGER=INFO,RFA