HADOOP-7419. new hadoop-config.sh doesn't manage classpath for HADOOP_CONF_DIR correctly. Contributed by Bing Zheng and Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1143511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ff0511019c
commit
952d970480
|
@ -355,6 +355,9 @@ Trunk (unreleased changes)
|
||||||
HADOOP-7442. Docs in core-default.xml still reference deprecated config
|
HADOOP-7442. Docs in core-default.xml still reference deprecated config
|
||||||
"topology.script.file.name" (atm)
|
"topology.script.file.name" (atm)
|
||||||
|
|
||||||
|
HADOOP-7419. new hadoop-config.sh doesn't manage classpath for
|
||||||
|
HADOOP_CONF_DIR correctly. (Bing Zheng and todd via todd)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -285,7 +285,7 @@ if [ -d "${HADOOP_HDFS_HOME}" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME
|
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "${HADOOP_HDFS_HOME}/conf" ]; then
|
if [ ! -d "${HADOOP_CONF_DIR}" ] && [ -d "${HADOOP_HDFS_HOME}/conf" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:${HADOOP_HDFS_HOME}/conf
|
CLASSPATH=${CLASSPATH}:${HADOOP_HDFS_HOME}/conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ if [ -d "${HADOOP_MAPRED_HOME}" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME
|
CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "${HADOOP_MAPRED_HOME}/conf" ]; then
|
if [ ! -d "${HADOOP_CONF_DIR}" ] && [ -d "${HADOOP_MAPRED_HOME}/conf" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:${HADOOP_MAPRED_HOME}/conf
|
CLASSPATH=${CLASSPATH}:${HADOOP_MAPRED_HOME}/conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue