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.

This commit is contained in:
cnauroth 2015-03-26 21:48:27 -07:00
parent c261d35b75
commit 1fd350fa8e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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