From 1b0cfc84e7ed83b3a5779b0162650173dbe9c653 Mon Sep 17 00:00:00 2001 From: Eric Payne Date: Thu, 26 May 2016 23:43:08 +0000 Subject: [PATCH] YARN-5116. Failed to execute "yarn application". Contributed by Jun Gong --- hadoop-yarn-project/hadoop-yarn/bin/yarn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn b/hadoop-yarn-project/hadoop-yarn/bin/yarn index 878c95f662..2c19cd286d 100755 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn @@ -70,6 +70,7 @@ function yarncmd_case hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS" HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}" set -- "${subcmd}" "$@" + HADOOP_SUBCMD_ARGS=("$@") ;; classpath) hadoop_do_classpath_subcommand HADOOP_CLASSNAME "$@" @@ -216,6 +217,7 @@ function yarncmd_case HADOOP_CLASSNAME=org.apache.hadoop.yarn.client.cli.TopCLI hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS" HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}" + HADOOP_SUBCMD_ARGS=("$@") ;; *) HADOOP_CLASSNAME="${subcmd}"