From 1fd350fa8ed83e7b99830ec7adf1b02a36c0c11e Mon Sep 17 00:00:00 2001 From: cnauroth Date: Thu, 26 Mar 2015 21:48:27 -0700 Subject: [PATCH] HADOOP-11257. Update "hadoop jar" documentation to warn against using it for launching yarn jars, addendum to print warning to stderr. Contributed by Masatake Iwasaki. --- hadoop-common-project/hadoop-common/src/main/bin/hadoop | 2 +- hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index 980cd0c87d5..6346944af89 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -110,7 +110,7 @@ case $COMMAND in elif [ "$COMMAND" = "jar" ] ; then CLASS=org.apache.hadoop.util.RunJar if [[ -n "${YARN_OPTS}" ]] || [[ -n "${YARN_CLIENT_OPTS}" ]]; then - echo "WARNING: Use \"yarn jar\" to launch YARN applications." + echo "WARNING: Use \"yarn jar\" to launch YARN applications." 1>&2 fi elif [ "$COMMAND" = "key" ] ; then CLASS=org.apache.hadoop.crypto.key.KeyShell diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd index aebac81bf57..d53ba575db0 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd @@ -162,9 +162,9 @@ call :updatepath %HADOOP_BIN_PATH% :jar if defined YARN_OPTS ( - @echo WARNING: Use "yarn jar" to launch YARN applications. + @echo WARNING: Use "yarn jar" to launch YARN applications. 1>&2 ) else if defined YARN_CLIENT_OPTS ( - @echo WARNING: Use "yarn jar" to launch YARN applications. + @echo WARNING: Use "yarn jar" to launch YARN applications. 1>&2 ) set CLASS=org.apache.hadoop.util.RunJar goto :eof