YARN-7465. start-yarn.sh fails to start ResourceManagers unless running as root.

This commit is contained in:
Sean Mackrory 2017-11-08 15:45:35 -07:00
parent ac4d2b1081
commit 1883a00249

View File

@ -65,7 +65,7 @@ else
RMHOSTS="${RMHOSTS} ${rmhost}"
done
echo "Starting resourcemanagers on [${RMHOSTS}]"
hadoop_uservar_su yarn "${HADOOP_YARN_HOME}/bin/yarn" \
hadoop_uservar_su yarn resourcemanager "${HADOOP_YARN_HOME}/bin/yarn" \
--config "${HADOOP_CONF_DIR}" \
--daemon start \
--workers \