Hadoop 2.2.0启动脚本——libexec/hdfs-config.sh

一、libexec/hdfs-config.sh

执行hadoop-config.sh

二、libexec/yarn-config.sh

执行hadoop-config.sh

export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}

export YARN_CONF_DIR="${HADOOP_CONF_DIR:-$HADOOP_YARN_HOME/conf}" 

读取--hosts参数,设置为slavesfile 

三、libexec/mapred-config.sh

执行hadoop-config.sh

设置LOG: 

HADOOP_MAPRED_LOG_DIR=${HADOOP_MAPRED_LOG_DIR:-${HADOOP_MAPRED_HOME}/logs}
HADOOP_MAPRED_LOGFILE=${HADOOP_MAPRED_LOGFILE:-hadoop.log}
HADOOP_MAPRED_ROOT_LOGGER=${HADOOP_MAPRED_ROOT_LOGGER:-INFO,console} 

设置HADOOP_OPTS:

HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.dir=$HADOOP_MAPRED_LOG_DIR"
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.file=$HADOOP_MAPRED_LOGFILE"
export HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.root.logger=${HADOOP_MAPRED_ROOT_LOGGER}"

转载于:https://www.cnblogs.com/hujunfei/p/3617806.html

你可能感兴趣的:(Hadoop 2.2.0启动脚本——libexec/hdfs-config.sh)