diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index c5b096f0b5d..fa0d981871e 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -31,8 +31,6 @@ function print_usage(){ echo " fs run a generic filesystem user client" echo " version print the version" echo " jar run a jar file" - echo " note: please use \"yarn jar\" to launch" - echo " YARN applications, not this command." echo " checknative [-a|-h] check native hadoop and compression libraries availability" echo " distcp copy file or directories recursively" echo " archive -archiveName NAME -p * create a hadoop archive" @@ -103,9 +101,6 @@ case $COMMAND in CLASS=org.apache.hadoop.util.VersionInfo 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." - fi elif [ "$COMMAND" = "key" ] ; then CLASS=org.apache.hadoop.crypto.key.KeyShell elif [ "$COMMAND" = "checknative" ] ; then 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 5cac64a125c..da68a7cea9d 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd @@ -157,11 +157,6 @@ call :updatepath %HADOOP_BIN_PATH% goto :eof :version - if defined YARN_OPTS ( - @echo WARNING: Use "yarn jar" to launch YARN applications. - ) else if defined YARN_CLIENT_OPTS ( - @echo WARNING: Use "yarn jar" to launch YARN applications. - ) set CLASS=org.apache.hadoop.util.VersionInfo goto :eof @@ -246,8 +241,6 @@ call :updatepath %HADOOP_BIN_PATH% goto :MakeCmdArgsLoop :EndLoop set hadoop-command-arguments=%_arguments% - @echo note: please use "yarn jar" to launch - @echo YARN applications, not this command. goto :eof :print_usage diff --git a/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm b/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm index 6d2fd5e2b7e..7771aa13ff1 100644 --- a/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm +++ b/hadoop-common-project/hadoop-common/src/site/apt/CommandsManual.apt.vm @@ -177,9 +177,6 @@ User Commands Word count example is also run using jar command. It can be referred from Wordcount example - Use {{{../../hadoop-yarn/hadoop-yarn-site/YarnCommands.html#jar}<<>>}} - to launch YARN applications instead. - * <<>> Deprecated. Use