2009-05-19 04:30:38 +00:00
|
|
|
# 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.
|
2011-05-27 16:35:02 +00:00
|
|
|
export JAVA_HOME=${JAVA_HOME}
|
|
|
|
|
|
|
|
# Hadoop Installation Prefix
|
|
|
|
HADOOP_PREFIX=${HADOOP_PREFIX}
|
|
|
|
|
|
|
|
# Hadoop Configuration Directory
|
|
|
|
HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
|
|
|
|
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-$HADOOP_PREFIX/conf}
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# Extra Java CLASSPATH elements. Optional.
|
2010-09-16 02:34:29 +00:00
|
|
|
# export HADOOP_CLASSPATH="<extra_entries>:$HADOOP_CLASSPATH"
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# The maximum amount of heap to use, in MB. Default is 1000.
|
|
|
|
# export HADOOP_HEAPSIZE=2000
|
|
|
|
|
|
|
|
# Extra Java runtime options. Empty by default.
|
2010-10-25 23:16:31 +00:00
|
|
|
# if [ "$HADOOP_OPTS" == "" ]; then export HADOOP_OPTS=-server; else HADOOP_OPTS+=" -server"; fi
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# 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"
|
2011-03-04 05:36:15 +00:00
|
|
|
export HADOOP_TASKTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_TASKTRACKER_OPTS"
|
2009-05-19 04:30:38 +00:00
|
|
|
# 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"
|
|
|
|
|
2011-05-27 16:35:02 +00:00
|
|
|
# File naming remote slave hosts. $HADOOP_PREFIX/conf/slaves by default.
|
|
|
|
export HADOOP_SLAVES=${HADOOP_CONF_DIR}/slaves
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# 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.
|
2011-05-27 16:35:02 +00:00
|
|
|
HADOOP_PID_DIR=${HADOOP_PID_DIR}
|
|
|
|
export HADOOP_PID_DIR=${HADOOP_PID_DIR:-$HADOOP_PREFIX/var/run}
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# A string representing this instance of hadoop. $USER by default.
|
2011-05-27 16:35:02 +00:00
|
|
|
export HADOOP_IDENT_STRING=`whoami`
|
2009-05-19 04:30:38 +00:00
|
|
|
|
|
|
|
# The scheduling priority for daemon processes. See 'man nice'.
|
|
|
|
# export HADOOP_NICENESS=10
|
2011-01-23 22:08:34 +00:00
|
|
|
|
|
|
|
# Allow Hadoop to run with sysctl net.ipv6.bindv6only = 1
|
|
|
|
# export HADOOP_ALLOW_IPV6=yes
|
2011-05-27 16:35:02 +00:00
|
|
|
|
|
|
|
# Where log files are stored. $HADOOP_PREFIX/logs by default.
|
|
|
|
HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$HADOOP_IDENT_STRING
|
|
|
|
export HADOOP_LOG_DIR=${HADOOP_LOG_DIR:-$HADOOP_PREFIX/var/log}
|