From ef32d09030b4cc2674a134e123f784c0364c3f02 Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Wed, 20 Aug 2014 18:47:10 +0000 Subject: [PATCH] [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 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ hadoop-mapreduce-project/bin/mapred | 5 +++++ .../src/site/apt/MapredCommands.apt.vm | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index c1701297d6c..0044287f7f5 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -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. diff --git a/hadoop-mapreduce-project/bin/mapred b/hadoop-mapreduce-project/bin/mapred index 340a95b8a32..cbfdc7e7d09 100755 --- a/hadoop-mapreduce-project/bin/mapred +++ b/hadoop-mapreduce-project/bin/mapred @@ -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 ;; diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm index 795eb344e64..9edc41d13d4 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/apt/MapredCommands.apt.vm @@ -177,6 +177,12 @@ MapReduce Commands Guide Creates a hadoop archive. More information can be found at {{{./HadoopArchives.html}Hadoop Archives Guide}}. +** <<>> + + Prints the version. + + Usage: <<>> + * Administration Commands Commands useful for administrators of a hadoop cluster.