Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 75 lines (56 sloc) 3.351 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
# This if statement insures that this file will be sources only once
if [[ "$IS_HADOOP_ENV_ALREADY_SOURCED" != "true" ]]; then
export IS_HADOOP_ENV_ALREADY_SOURCED="true";

  # Set Hadoop-specific environment variables here.

  # The only required environment variable is JAVA_HOME. All others are
  # optional. When running a distributed configuration it is best to
  # set JAVA_HOME in this file, so that it is correctly defined on
  # remote nodes.

  # The java implementation to use. Required.
  # export JAVA_HOME=/usr/lib/j2sdk1.5-sun

  # Extra Java CLASSPATH elements. Optional.
  # export HADOOP_CLASSPATH=

  # The maximum amount of heap to use, in MB. Default is 1000.
  # export HADOOP_HEAPSIZE=2000

  # Extra Java runtime options. Empty by default.
  # export HADOOP_OPTS=-server
  export HADOOP_OPTS=" -Ddns_call_stack_logging=true "
  # Command specific options appended to HADOOP_OPTS when specified
  export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_NAMENODE_OPTS"
  export HADOOP_SECONDARYNAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_SECONDARYNAMENODE_OPTS"
  export HADOOP_DATANODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_DATANODE_OPTS"
  export HADOOP_BALANCER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_BALANCER_OPTS"
  export HADOOP_JOBTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS"
  export HADOOP_RAIDNODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_RAIDNODE_OPTS"
  export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote.port=8998 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

  # The only user who can start hadoop daemons.
  # If this is not set, any user can start hadoop daemons.
  export HADOOP_USERNAME="hadoop"

  # Java Runtime garbage collection options to pass to all Hadoop
  # servers (Namenode, Jobtracker, Datanode, Tasktracker). This must end
  # with a colon ; to which the dynamically generated gc log filename will
  # be appended to. The below defaults work for the Sun JVM, for example
  # in IBM GC, use '-Xverbosegclog:'.
  #export HADOOP_GC_LOG_OPTS="-XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:"

  # export HADOOP_TASKTRACKER_OPTS=
  # The following applies to multiple commands (fs, dfs, fsck, distcp etc)
  # export HADOOP_CLIENT_OPTS

  # Extra ssh options. Empty by default.
  # export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"

  # Where log files are stored. $HADOOP_HOME/logs by default.
  # export HADOOP_LOG_DIR=${HADOOP_HOME}/logs

  # File naming remote slave hosts. $HADOOP_HOME/conf/slaves by default.
  # export HADOOP_SLAVES=${HADOOP_HOME}/conf/slaves

  # host:path where hadoop code should be rsync'd from. Unset by default.
  # export HADOOP_MASTER=master:/home/$USER/src/hadoop

  # Seconds to sleep between slave commands. Unset by default. This
  # can be useful in large clusters, where, e.g., slave rsyncs can
  # otherwise arrive faster than the master can service them.
  # export HADOOP_SLAVE_SLEEP=0.1

  # The directory where pid files are stored. /tmp by default.
  # export HADOOP_PID_DIR=/var/hadoop/pids

  # A string representing this instance of hadoop. $USER by default.
  # export HADOOP_IDENT_STRING=$USER

  # The scheduling priority for daemon processes. See 'man nice'.
  # export HADOOP_NICENESS=10

fi
Something went wrong with that request. Please try again.