Author: aw Date: Wed Aug 20 18:47:10 2014 New Revision: 1619201 URL: http://svn.apache.org/r1619201 Log: [post-HADOOP-9902] mapred version is missing (Akira AJISAKA via aw)
Modified: hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm Modified: hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt?rev=1619201&r1=1619200&r2=1619201&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt (original) +++ hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt Wed Aug 20 18:47:10 2014 @@ -86,6 +86,9 @@ Trunk (Unreleased) MAPREDUCE-6019. MapReduce changes for exposing YARN/MR endpoints on multiple interfaces. (Craig Welch, Milan Potocnik, Arpit Agarwal via xgong) + MAPREDUCE-6013. [post-HADOOP-9902] mapred version is missing (Akira AJISAKA + via aw) + BUG FIXES MAPREDUCE-5714. Removed forceful JVM exit in shutDownJob. Modified: hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred?rev=1619201&r1=1619200&r2=1619201&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred (original) +++ hadoop/common/trunk/hadoop-mapreduce-project/bin/mapred Wed Aug 20 18:47:10 2014 @@ -29,6 +29,7 @@ function hadoop_usage echo " pipes run a Pipes job" echo " queue get information regarding JobQueues" echo " sampler sampler" + echo " version print the version" echo "" echo "Most commands print help when invoked w/o parameters." } @@ -105,6 +106,10 @@ case ${COMMAND} in CLASS=org.apache.hadoop.mapred.lib.InputSampler 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 ;; Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm?rev=1619201&r1=1619200&r2=1619201&view=diff ============================================================================== --- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm (original) +++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm Wed Aug 20 18:47:10 2014 @@ -177,6 +177,12 @@ MapReduce Commands Guide Creates a hadoop archive. More information can be found at {{{./HadoopArchives.html}Hadoop Archives Guide}}. +** <<<version>>> + + Prints the version. + + Usage: <<<mapred version>>> + * Administration Commands Commands useful for administrators of a hadoop cluster.