merge MAPREDUCE-3194
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1235959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5f8d2a075f
commit
142b34f065
|
@ -154,6 +154,9 @@ Release 0.23.1 - Unreleased
|
||||||
for every event slowing down AM. (Siddarth Seth via vinodkv)
|
for every event slowing down AM. (Siddarth Seth via vinodkv)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
MAPREDUCE-3194. "mapred mradmin" command is broken in mrv2
|
||||||
|
(Jason Lowe via bobby)
|
||||||
|
|
||||||
MAPREDUCE-3462. Fix Gridmix JUnit testcase failures.
|
MAPREDUCE-3462. Fix Gridmix JUnit testcase failures.
|
||||||
(Ravi Prakash and Ravi Gummadi via amarrk)
|
(Ravi Prakash and Ravi Gummadi via amarrk)
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,6 @@ fi
|
||||||
function print_usage(){
|
function print_usage(){
|
||||||
echo "Usage: mapred [--config confdir] COMMAND"
|
echo "Usage: mapred [--config confdir] COMMAND"
|
||||||
echo " where COMMAND is one of:"
|
echo " where COMMAND is one of:"
|
||||||
echo " mradmin run a Map-Reduce admin client"
|
|
||||||
echo " jobtracker run the MapReduce job Tracker node"
|
|
||||||
echo " tasktracker run a MapReduce task Tracker node"
|
|
||||||
echo " pipes run a Pipes job"
|
echo " pipes run a Pipes job"
|
||||||
echo " job manipulate MapReduce jobs"
|
echo " job manipulate MapReduce jobs"
|
||||||
echo " queue get information regarding JobQueues"
|
echo " queue get information regarding JobQueues"
|
||||||
|
@ -51,16 +48,7 @@ fi
|
||||||
COMMAND=$1
|
COMMAND=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if [ "$COMMAND" = "mradmin" ] ; then
|
if [ "$COMMAND" = "job" ] ; then
|
||||||
CLASS=org.apache.hadoop.mapred.tools.MRAdmin
|
|
||||||
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
|
|
||||||
elif [ "$COMMAND" = "jobtracker" ] ; then
|
|
||||||
CLASS=org.apache.hadoop.mapred.JobTracker
|
|
||||||
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_JOBTRACKER_OPTS"
|
|
||||||
elif [ "$COMMAND" = "tasktracker" ] ; then
|
|
||||||
CLASS=org.apache.hadoop.mapred.TaskTracker
|
|
||||||
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_TASKTRACKER_OPTS"
|
|
||||||
elif [ "$COMMAND" = "job" ] ; then
|
|
||||||
CLASS=org.apache.hadoop.mapred.JobClient
|
CLASS=org.apache.hadoop.mapred.JobClient
|
||||||
elif [ "$COMMAND" = "queue" ] ; then
|
elif [ "$COMMAND" = "queue" ] ; then
|
||||||
CLASS=org.apache.hadoop.mapred.JobQueueClient
|
CLASS=org.apache.hadoop.mapred.JobQueueClient
|
||||||
|
@ -75,6 +63,13 @@ elif [ "$COMMAND" = "classpath" ] ; then
|
||||||
elif [ "$COMMAND" = "groups" ] ; then
|
elif [ "$COMMAND" = "groups" ] ; then
|
||||||
CLASS=org.apache.hadoop.mapred.tools.GetGroups
|
CLASS=org.apache.hadoop.mapred.tools.GetGroups
|
||||||
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
|
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
|
||||||
|
elif [ "$COMMAND" = "mradmin" ] \
|
||||||
|
|| [ "$COMMAND" = "jobtracker" ] \
|
||||||
|
|| [ "$COMMAND" = "tasktracker" ] ; then
|
||||||
|
echo "Sorry, the $COMMAND command is no longer supported."
|
||||||
|
echo "You may find similar functionality with the \"yarn\" shell command."
|
||||||
|
print_usage
|
||||||
|
exit
|
||||||
else
|
else
|
||||||
echo $COMMAND - invalid command
|
echo $COMMAND - invalid command
|
||||||
print_usage
|
print_usage
|
||||||
|
|
Loading…
Reference in New Issue