From aa53f366c8f7fe77a04e47589752e0916a2299e8 Mon Sep 17 00:00:00 2001 From: Siddharth Seth Date: Wed, 3 Oct 2012 21:28:49 +0000 Subject: [PATCH] merge MAPREDUCE-4123 from trunk. Remove the 'mapred groups' command, which is no longer supported. (Contributed by Devaraj K) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1393776 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ hadoop-mapreduce-project/bin/mapred | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index fadb7b36154..5d584232b29 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -4,6 +4,9 @@ Release 2.0.3-alpha - Unreleased INCOMPATIBLE CHANGES + MAPREDUCE-4123. Remove the 'mapred groups' command, which is no longer + supported. (Devaraj K via sseth) + NEW FEATURES IMPROVEMENTS diff --git a/hadoop-mapreduce-project/bin/mapred b/hadoop-mapreduce-project/bin/mapred index 86560c12116..76d7759bfd6 100755 --- a/hadoop-mapreduce-project/bin/mapred +++ b/hadoop-mapreduce-project/bin/mapred @@ -35,7 +35,6 @@ function print_usage(){ echo " queue get information regarding JobQueues" echo " classpath prints the class path needed for running" echo " mapreduce subcommands" - echo " groups get the groups which users belong to" echo " historyserver run job history servers as a standalone daemon" echo " distcp copy file or directories recursively" echo " archive -archiveName NAME -p * create a hadoop archive" @@ -63,9 +62,6 @@ elif [ "$COMMAND" = "sampler" ] ; then HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS" elif [ "$COMMAND" = "classpath" ] ; then echo -n -elif [ "$COMMAND" = "groups" ] ; then - CLASS=org.apache.hadoop.mapred.tools.GetGroups - HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS" elif [ "$COMMAND" = "historyserver" ] ; then CLASS=org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer HADOOP_OPTS="$HADOOP_OPTS -Dmapred.jobsummary.logger=${HADOOP_JHS_LOGGER:-INFO,console} $HADOOP_JOB_HISTORYSERVER_OPTS" @@ -74,7 +70,8 @@ elif [ "$COMMAND" = "historyserver" ] ; then fi elif [ "$COMMAND" = "mradmin" ] \ || [ "$COMMAND" = "jobtracker" ] \ - || [ "$COMMAND" = "tasktracker" ] ; then + || [ "$COMMAND" = "tasktracker" ] \ + || [ "$COMMAND" = "groups" ] ; then echo "Sorry, the $COMMAND command is no longer supported." echo "You may find similar functionality with the \"yarn\" shell command." print_usage