From 1883a0024949f7946264a4d7649b03fd1881567a Mon Sep 17 00:00:00 2001 From: Sean Mackrory Date: Wed, 8 Nov 2017 15:45:35 -0700 Subject: [PATCH] YARN-7465. start-yarn.sh fails to start ResourceManagers unless running as root. --- hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh b/hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh index c009b4381d..b2244ecddd 100755 --- a/hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh +++ b/hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh @@ -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 \