YARN-2472. yarn-daemons.sh should jsut call yarn directly (Masatake Iwasaki via aw)

This commit is contained in:
Allen Wittenauer 2014-12-02 09:14:20 -08:00
parent 75d53456ea
commit 26319ba0db
4 changed files with 11 additions and 6 deletions

View File

@ -10,6 +10,9 @@ Trunk - Unreleased
YARN-2438. yarn-env.sh cleanup (aw)
YARN-2472. yarn-daemons.sh should jsut call yarn directly (Masatake Iwasaki
via aw)
OPTIMIZATIONS
BUG FIXES

View File

@ -42,8 +42,8 @@ else
fi
# start resourceManager
"${bin}/yarn-daemon.sh" --config "${YARN_CONF_DIR}" start resourcemanager
"${HADOOP_YARN_HOME}/bin/yarn" --config "${YARN_CONF_DIR}" --daemon start resourcemanager
# start nodeManager
"${bin}/yarn-daemons.sh" --config "${YARN_CONF_DIR}" start nodemanager
# start proxyserver
#"${bin}/yarn-daemon.sh" --config "${YARN_CONF_DIR}" start proxyserver
#"${HADOOP_YARN_HOME}/bin/yarn" --config "${YARN_CONF_DIR}" --daemon start proxyserver

View File

@ -44,8 +44,8 @@ else
fi
# start resourceManager
"${bin}/yarn-daemon.sh" --config "${YARN_CONF_DIR}" stop resourcemanager
"${HADOOP_YARN_HOME}/bin/yarn" --config "${YARN_CONF_DIR}" --daemon stop resourcemanager
# start nodeManager
"${bin}/yarn-daemons.sh" --config "${YARN_CONF_DIR}" stop nodemanager
# start proxyserver
#"${bin}/yarn-daemon.sh" --config "${YARN_CONF_DIR}" stop proxyserver
#"${HADOOP_YARN_HOME}/bin/yarn" --config "${YARN_CONF_DIR}" --daemon stop proxyserver

View File

@ -41,6 +41,8 @@ else
exit 1
fi
hadoop_connect_to_hosts "${bin}/yarn-daemon.sh" \
--config "${HADOOP_CONF_DIR}" "$@"
daemonmode=$1
shift
hadoop_connect_to_hosts "${HADOOP_YARN_HOME}/bin/yarn" \
--config "${HADOOP_CONF_DIR}" --daemon "${daemonmode}" "$@"