HADOOP-8794. Rename YARN_HOME to HADOOP_YARN_HOME. Contributed by Vinod K V.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1390221 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2012-09-25 23:43:48 +00:00
parent 8912aac81e
commit 296ee4575e
3 changed files with 12 additions and 10 deletions

View File

@ -302,6 +302,8 @@ Release 2.0.2-alpha - 2012-09-07
HADOOP-8710. Remove ability for users to easily run the trash emptire. (eli) HADOOP-8710. Remove ability for users to easily run the trash emptire. (eli)
HADOOP-8794. Rename YARN_HOME to HADOOP_YARN_HOME. (vinodkv via acmurthy)
NEW FEATURES NEW FEATURES
HDFS-3042. Automatic failover support for NameNode HA (todd) HDFS-3042. Automatic failover support for NameNode HA (todd)

View File

@ -269,21 +269,21 @@ fi
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/$HDFS_DIR'/*' CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/$HDFS_DIR'/*'
# put yarn in classpath if present # put yarn in classpath if present
if [ "$YARN_HOME" = "" ]; then if [ "$HADOOP_YARN_HOME" = "" ]; then
if [ -d "${HADOOP_PREFIX}/$YARN_DIR" ]; then if [ -d "${HADOOP_PREFIX}/$YARN_DIR" ]; then
export YARN_HOME=$HADOOP_PREFIX export HADOOP_YARN_HOME=$HADOOP_PREFIX
fi fi
fi fi
if [ -d "$YARN_HOME/$YARN_DIR/webapps" ]; then if [ -d "$HADOOP_YARN_HOME/$YARN_DIR/webapps" ]; then
CLASSPATH=${CLASSPATH}:$YARN_HOME/$YARN_DIR CLASSPATH=${CLASSPATH}:$HADOOP_YARN_HOME/$YARN_DIR
fi fi
if [ -d "$YARN_HOME/$YARN_LIB_JARS_DIR" ]; then if [ -d "$HADOOP_YARN_HOME/$YARN_LIB_JARS_DIR" ]; then
CLASSPATH=${CLASSPATH}:$YARN_HOME/$YARN_LIB_JARS_DIR'/*' CLASSPATH=${CLASSPATH}:$HADOOP_YARN_HOME/$YARN_LIB_JARS_DIR'/*'
fi fi
CLASSPATH=${CLASSPATH}:$YARN_HOME/$YARN_DIR'/*' CLASSPATH=${CLASSPATH}:$HADOOP_YARN_HOME/$YARN_DIR'/*'
# put mapred in classpath if present AND different from YARN # put mapred in classpath if present AND different from YARN
if [ "$HADOOP_MAPRED_HOME" = "" ]; then if [ "$HADOOP_MAPRED_HOME" = "" ]; then
@ -292,7 +292,7 @@ if [ "$HADOOP_MAPRED_HOME" = "" ]; then
fi fi
fi fi
if [ "$HADOOP_MAPRED_HOME/$MAPRED_DIR" != "$YARN_HOME/$YARN_DIR" ] ; then if [ "$HADOOP_MAPRED_HOME/$MAPRED_DIR" != "$HADOOP_YARN_HOME/$YARN_DIR" ] ; then
if [ -d "$HADOOP_MAPRED_HOME/$MAPRED_DIR/webapps" ]; then if [ -d "$HADOOP_MAPRED_HOME/$MAPRED_DIR/webapps" ]; then
CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME/$MAPRED_DIR CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME/$MAPRED_DIR
fi fi

View File

@ -33,6 +33,6 @@ if [ -f "${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh ]; then
fi fi
# start yarn daemons if yarn is present # start yarn daemons if yarn is present
if [ -f "${YARN_HOME}"/sbin/start-yarn.sh ]; then if [ -f "${HADOOP_YARN_HOME}"/sbin/start-yarn.sh ]; then
"${YARN_HOME}"/sbin/start-yarn.sh --config $HADOOP_CONF_DIR "${HADOOP_YARN_HOME}"/sbin/start-yarn.sh --config $HADOOP_CONF_DIR
fi fi