HADOOP-8199. Fix issues in start-all.sh and stop-all.sh Contributed by Devaraj K.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1308182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e83f0327d8
commit
ffc5f0b915
|
@ -129,6 +129,8 @@ Release 2.0.0 - UNRELEASED
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
|
HADOOP-8199. Fix issues in start-all.sh and stop-all.sh (Devaraj K via umamahesh)
|
||||||
|
|
||||||
HADOOP-7900. LocalDirAllocator confChanged() accesses conf.get() twice
|
HADOOP-7900. LocalDirAllocator confChanged() accesses conf.get() twice
|
||||||
(Ravi Gummadi via Uma Maheswara Rao G)
|
(Ravi Gummadi via Uma Maheswara Rao G)
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
# Start all hadoop daemons. Run this on master node.
|
# Start all hadoop daemons. Run this on master node.
|
||||||
|
|
||||||
echo "This script is Deprecated. Instead use start-dfs.sh and start-mapred.sh"
|
echo "This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh"
|
||||||
|
|
||||||
bin=`dirname "${BASH_SOURCE-$0}"`
|
bin=`dirname "${BASH_SOURCE-$0}"`
|
||||||
bin=`cd "$bin"; pwd`
|
bin=`cd "$bin"; pwd`
|
||||||
|
@ -28,6 +28,11 @@ HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||||
. $HADOOP_LIBEXEC_DIR/hadoop-config.sh
|
. $HADOOP_LIBEXEC_DIR/hadoop-config.sh
|
||||||
|
|
||||||
# start hdfs daemons if hdfs is present
|
# start hdfs daemons if hdfs is present
|
||||||
if [ -f "${HADOOP_HDFS_HOME}"/bin/start-dfs.sh ]; then
|
if [ -f "${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh ]; then
|
||||||
"${HADOOP_HDFS_HOME}"/bin/start-dfs.sh --config $HADOOP_CONF_DIR
|
"${HADOOP_HDFS_HOME}"/sbin/start-dfs.sh --config $HADOOP_CONF_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
# start yarn daemons if yarn is present
|
||||||
|
if [ -f "${YARN_HOME}"/sbin/start-dfs.sh ]; then
|
||||||
|
"${YARN_HOME}"/sbin/start-yarn.sh --config $HADOOP_CONF_DIR
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
# Stop all hadoop daemons. Run this on master node.
|
# Stop all hadoop daemons. Run this on master node.
|
||||||
|
|
||||||
echo "This script is Deprecated. Instead use stop-dfs.sh and stop-mapred.sh"
|
echo "This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh"
|
||||||
|
|
||||||
bin=`dirname "${BASH_SOURCE-$0}"`
|
bin=`dirname "${BASH_SOURCE-$0}"`
|
||||||
bin=`cd "$bin"; pwd`
|
bin=`cd "$bin"; pwd`
|
||||||
|
@ -28,6 +28,11 @@ HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||||
. $HADOOP_LIBEXEC_DIR/hadoop-config.sh
|
. $HADOOP_LIBEXEC_DIR/hadoop-config.sh
|
||||||
|
|
||||||
# stop hdfs daemons if hdfs is present
|
# stop hdfs daemons if hdfs is present
|
||||||
if [ -f "${HADOOP_HDFS_HOME}"/bin/stop-dfs.sh ]; then
|
if [ -f "${HADOOP_HDFS_HOME}"/sbin/stop-dfs.sh ]; then
|
||||||
"${HADOOP_HDFS_HOME}"/bin/stop-dfs.sh --config $HADOOP_CONF_DIR
|
"${HADOOP_HDFS_HOME}"/sbin/stop-dfs.sh --config $HADOOP_CONF_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
# stop yarn daemons if yarn is present
|
||||||
|
if [ -f "${HADOOP_HDFS_HOME}"/sbin/stop-yarn.sh ]; then
|
||||||
|
"${HADOOP_HDFS_HOME}"/sbin/stop-yarn.sh --config $HADOOP_CONF_DIR
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue