diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 3ba99d838e..8449857cc2 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -158,6 +158,9 @@ Release 2.3.0 - UNRELEASED MAPREDUCE-5358. MRAppMaster throws invalid transitions for JobImpl (Devaraj K via jlowe) + MAPREDUCE-5380. Invalid mapred command should return non-zero exit code + (Stephen Chu via jlowe) + Release 2.2.0 - UNRELEASED INCOMPATIBLE CHANGES @@ -1222,6 +1225,9 @@ Release 0.23.10 - UNRELEASED MAPREDUCE-3193. FileInputFormat doesn't read files recursively in the input path dir (Devaraj K via jlowe) + MAPREDUCE-5380. Invalid mapred command should return non-zero exit code + (Stephen Chu via jlowe) + Release 0.23.9 - 2013-07-08 INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/bin/mapred b/hadoop-mapreduce-project/bin/mapred index 0faa091dc3..8253c15a8f 100755 --- a/hadoop-mapreduce-project/bin/mapred +++ b/hadoop-mapreduce-project/bin/mapred @@ -83,7 +83,7 @@ elif [ "$COMMAND" = "mradmin" ] \ echo "Sorry, the $COMMAND command is no longer supported." echo "You may find similar functionality with the \"yarn\" shell command." print_usage - exit + exit 1 elif [ "$COMMAND" = "distcp" ] ; then CLASS=org.apache.hadoop.tools.DistCp CLASSPATH=${CLASSPATH}:${TOOL_PATH} @@ -95,7 +95,7 @@ elif [ "$COMMAND" = "archive" ] ; then else echo $COMMAND - invalid command print_usage - exit + exit 1 fi # for developers, add mapred classes to CLASSPATH