YARN-5116. Failed to execute "yarn application". Contributed by Jun Gong

This commit is contained in:
Eric Payne 2016-05-26 23:43:08 +00:00
parent 5b41b288d0
commit 1b0cfc84e7
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ function yarncmd_case
hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS" hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS"
HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}" HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}"
set -- "${subcmd}" "$@" set -- "${subcmd}" "$@"
HADOOP_SUBCMD_ARGS=("$@")
;; ;;
classpath) classpath)
hadoop_do_classpath_subcommand HADOOP_CLASSNAME "$@" hadoop_do_classpath_subcommand HADOOP_CLASSNAME "$@"
@ -216,6 +217,7 @@ function yarncmd_case
HADOOP_CLASSNAME=org.apache.hadoop.yarn.client.cli.TopCLI HADOOP_CLASSNAME=org.apache.hadoop.yarn.client.cli.TopCLI
hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS" hadoop_debug "Append YARN_CLIENT_OPTS onto HADOOP_OPTS"
HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}" HADOOP_OPTS="${HADOOP_OPTS} ${YARN_CLIENT_OPTS}"
HADOOP_SUBCMD_ARGS=("$@")
;; ;;
*) *)
HADOOP_CLASSNAME="${subcmd}" HADOOP_CLASSNAME="${subcmd}"