[post-HADOOP-9902] mapred version is missing (Akira AJISAKA via aw)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1619201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Allen Wittenauer 2014-08-20 18:47:10 +00:00
parent d7200a4b59
commit ef32d09030
3 changed files with 14 additions and 0 deletions

View File

@ -86,6 +86,9 @@ Trunk (Unreleased)
MAPREDUCE-6019. MapReduce changes for exposing YARN/MR endpoints on multiple MAPREDUCE-6019. MapReduce changes for exposing YARN/MR endpoints on multiple
interfaces. (Craig Welch, Milan Potocnik, Arpit Agarwal via xgong) interfaces. (Craig Welch, Milan Potocnik, Arpit Agarwal via xgong)
MAPREDUCE-6013. [post-HADOOP-9902] mapred version is missing (Akira AJISAKA
via aw)
BUG FIXES BUG FIXES
MAPREDUCE-5714. Removed forceful JVM exit in shutDownJob. MAPREDUCE-5714. Removed forceful JVM exit in shutDownJob.

View File

@ -29,6 +29,7 @@ function hadoop_usage
echo " pipes run a Pipes job" echo " pipes run a Pipes job"
echo " queue get information regarding JobQueues" echo " queue get information regarding JobQueues"
echo " sampler sampler" echo " sampler sampler"
echo " version print the version"
echo "" echo ""
echo "Most commands print help when invoked w/o parameters." echo "Most commands print help when invoked w/o parameters."
} }
@ -105,6 +106,10 @@ case ${COMMAND} in
CLASS=org.apache.hadoop.mapred.lib.InputSampler CLASS=org.apache.hadoop.mapred.lib.InputSampler
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}" HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
;; ;;
version)
CLASS=org.apache.hadoop.util.VersionInfo
HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}"
;;
-*|*) -*|*)
hadoop_exit_with_usage 1 hadoop_exit_with_usage 1
;; ;;

View File

@ -177,6 +177,12 @@ MapReduce Commands Guide
Creates a hadoop archive. More information can be found at Creates a hadoop archive. More information can be found at
{{{./HadoopArchives.html}Hadoop Archives Guide}}. {{{./HadoopArchives.html}Hadoop Archives Guide}}.
** <<<version>>>
Prints the version.
Usage: <<<mapred version>>>
* Administration Commands * Administration Commands
Commands useful for administrators of a hadoop cluster. Commands useful for administrators of a hadoop cluster.