Ashwin Shankar created MAPREDUCE-5316:
-----------------------------------------

             Summary: job -list-attempt-ids command does not handle illegal 
task-state
                 Key: MAPREDUCE-5316
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5316
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: client
    Affects Versions: 0.23.8, 2.0.4-alpha, 3.0.0
            Reporter: Ashwin Shankar
            Assignee: Ashwin Shankar


Courtesy : [~mikanboy]]
{quote}
job -list-attempt-ids command should handle illegal argument for <task-state>
the same way as <task-type>.  Right now only illegal <task-type> is handle by
an exception being thrown. Illegal <task-state> on the other hand does not
throw exception. For example is a user mistype 'completed' as 'complete', they
may wrongly think there are no completed tasks, instead of being notified of
the illegal <task-state> that was used.

1) illegal <task-type> handled.

[philips@gwbl2003:4095 ~/svn/HadoopQEAutomation/branch-23]$
/home/gs/gridre/yroot.theoden/share/hadoop/bin/mapred job -list-attempt-ids
job_1345673924741_0086 map completed
12/08/24 15:16:31 WARN conf.Configuration: mapred.used.genericoptionsparser is
deprecated. Instead, use mapreduce.client.genericoptionsparser.used
Exception in thread "main" java.lang.IllegalArgumentException: No enum const
class org.apache.hadoop.mapreduce.TaskType.map
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.apache.hadoop.mapreduce.TaskType.valueOf(TaskType.java:27)
        at org.apache.hadoop.mapreduce.tools.CLI.displayTasks(CLI.java:553)
        at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:309)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:69)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
        at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1242)


1) illegal <task-state> not handled.

/home/gs/gridre/yroot.theoden/share/hadoop/bin/mapred job -list-attempt-ids
job_1345673924741_0086 MAP complete
12/08/24 15:15:47 WARN conf.Configuration: mapred.used.genericoptionsparser is
deprecated. Instead, use mapreduce.client.genericoptionsparser.used
{quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to