MAPREDUCE-3456. /bin/yarn should set defaults for *_HOME (Eric Payne via mahadev)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1209825 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f7eda5a8d3
commit
bb2b8f565c
@ -230,6 +230,9 @@ Release 0.23.1 - Unreleased
|
|||||||
|
|
||||||
MAPREDUCE-3479. JobClient#getJob cannot find local jobs. (tomwhite)
|
MAPREDUCE-3479. JobClient#getJob cannot find local jobs. (tomwhite)
|
||||||
|
|
||||||
|
MAPREDUCE-3456. $HADOOP_PREFIX/bin/yarn should set defaults for
|
||||||
|
$HADOOP_*_HOME (Eric Payne via mahadev)
|
||||||
|
|
||||||
Release 0.23.0 - 2011-11-01
|
Release 0.23.0 - 2011-11-01
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -148,9 +148,13 @@ IFS=
|
|||||||
|
|
||||||
# add hadoop-common libs to CLASSPATH
|
# add hadoop-common libs to CLASSPATH
|
||||||
if [ ! -d "$HADOOP_COMMON_HOME" ]; then
|
if [ ! -d "$HADOOP_COMMON_HOME" ]; then
|
||||||
echo No HADOOP_COMMON_HOME set.
|
if [ -d "$HADOOP_PREFIX" ]; then
|
||||||
echo Please specify it either in yarn-env.sh or in the environment.
|
export HADOOP_COMMON_HOME=$HADOOP_PREFIX
|
||||||
exit 1
|
else
|
||||||
|
echo No HADOOP_COMMON_HOME set.
|
||||||
|
echo Please specify it either in yarn-env.sh or in the environment.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_COMMON_HOME/share/hadoop/common'/*'
|
CLASSPATH=${CLASSPATH}:$HADOOP_COMMON_HOME/share/hadoop/common'/*'
|
||||||
@ -158,9 +162,13 @@ CLASSPATH=${CLASSPATH}:$HADOOP_COMMON_HOME/share/hadoop/common/lib'/*'
|
|||||||
|
|
||||||
# add hadoop-hdfs libs to CLASSPATH
|
# add hadoop-hdfs libs to CLASSPATH
|
||||||
if [ ! -d "$HADOOP_HDFS_HOME" ]; then
|
if [ ! -d "$HADOOP_HDFS_HOME" ]; then
|
||||||
echo No HADOOP_HDFS_HOME set.
|
if [ -d "$HADOOP_PREFIX" ]; then
|
||||||
echo Please specify it either in yarn-env.sh or in the environment.
|
export HADOOP_HDFS_HOME=$HADOOP_PREFIX
|
||||||
exit 1
|
else
|
||||||
|
echo No HADOOP_HDFS_HOME set.
|
||||||
|
echo Please specify it either in yarn-env.sh or in the environment.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/share/hadoop/hdfs'/*'
|
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/share/hadoop/hdfs'/*'
|
||||||
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/share/hadoop/hdfs/lib'/*'
|
CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/share/hadoop/hdfs/lib'/*'
|
||||||
|
Loading…
Reference in New Issue
Block a user