HADOOP-9496. Bad merge of HADOOP-9450 on branch-2 breaks all bin/hadoop calls that need HADOOP_CLASSPATH. Contributed by Harsh J (harsh)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1471230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79de664f03
commit
c2d9bb2e6c
|
@ -39,6 +39,9 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
HADOOP-9450. HADOOP_USER_CLASSPATH_FIRST is not honored; CLASSPATH
|
HADOOP-9450. HADOOP_USER_CLASSPATH_FIRST is not honored; CLASSPATH
|
||||||
is PREpended instead of APpended. (Chris Nauroth and harsh via harsh)
|
is PREpended instead of APpended. (Chris Nauroth and harsh via harsh)
|
||||||
|
|
||||||
|
HADOOP-9496. Bad merge of HADOOP-9450 on branch-2 breaks all bin/hadoop
|
||||||
|
calls that need HADOOP_CLASSPATH. (harsh)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-9150. Avoid unnecessary DNS resolution attempts for logical URIs
|
HADOOP-9150. Avoid unnecessary DNS resolution attempts for logical URIs
|
||||||
|
|
|
@ -294,6 +294,18 @@ if [ "$HADOOP_MAPRED_HOME/$MAPRED_DIR" != "$HADOOP_YARN_HOME/$YARN_DIR" ] ; then
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME/$MAPRED_DIR'/*'
|
CLASSPATH=${CLASSPATH}:$HADOOP_MAPRED_HOME/$MAPRED_DIR'/*'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add the user-specified CLASSPATH via HADOOP_CLASSPATH
|
||||||
|
# Add it first or last depending on if user has
|
||||||
|
# set env-var HADOOP_USER_CLASSPATH_FIRST
|
||||||
|
if [ "$HADOOP_CLASSPATH" != "" ]; then
|
||||||
|
# Prefix it if its to be preceded
|
||||||
|
if [ "$HADOOP_USER_CLASSPATH_FIRST" != "" ]; then
|
||||||
|
CLASSPATH=${HADOOP_CLASSPATH}:${CLASSPATH}
|
||||||
|
else
|
||||||
|
CLASSPATH=${CLASSPATH}:${HADOOP_CLASSPATH}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# cygwin path translation
|
# cygwin path translation
|
||||||
if $cygwin; then
|
if $cygwin; then
|
||||||
HADOOP_HDFS_HOME=`cygpath -w "$HADOOP_HDFS_HOME"`
|
HADOOP_HDFS_HOME=`cygpath -w "$HADOOP_HDFS_HOME"`
|
||||||
|
@ -303,5 +315,3 @@ fi
|
||||||
if $cygwin; then
|
if $cygwin; then
|
||||||
TOOL_PATH=`cygpath -p -w "$TOOL_PATH"`
|
TOOL_PATH=`cygpath -p -w "$TOOL_PATH"`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue