Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4120

mapred job -list-attempt-ids fails to get attempt ids

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 2.0.0-alpha, 3.0.0-alpha1
    • None
    • client, mrv2
    • None

    Description

      dev@ubuntudev-linux:~/hadoop/install/hadoop-3.0.0-SNAPSHOT/bin$ ./mapred job -list-attempt-ids job_1333786831666_0001
      Usage: CLI [-list-attempt-ids <job-id> <task-type> <task-state>]. Valid values for <task-type> are MAP REDUCE JOB_SETUP JOB_CLEANUP TASK_CLEANUP. Valid values for <task-state> are running, completed
      



      In the above command it gives valid <task-type> are MAP REDUCE JOB_SETUP JOB_CLEANUP TASK_CLEANUP. If we give the <task-type> as MAP, it says as invalid type.

      dev@ubuntudev-linux:~/hadoop/install/hadoop-3.0.0-SNAPSHOT/bin$ ./mapred job -list-attempt-ids job_1333786831666_0001 MAP completed
      12/04/07 19:51:21 INFO mapred.ClientServiceDelegate: Application state is completed. FinalApplicationStatus=SUCCEEDED. Redirecting to job history server
      Exception in thread "main" java.lang.IllegalArgumentException: Invalid type: MAP. Valid types for task are: map, reduce, setup, cleanup.
      	at org.apache.hadoop.mapreduce.tools.CLI.displayTasks(CLI.java:564)
      	at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:316)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      	at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1244)
      



      In the above command it gives valid types for task are: map, reduce, setup, cleanup.. If we give the <task-type> as map, it fails with the below error.

      dev@ubuntudev-linux:~/hadoop/install/hadoop-3.0.0-SNAPSHOT/bin$ ./mapred job -list-attempt-ids job_1333786831666_0001 map completed
      12/04/07 19:51:42 INFO mapred.ClientServiceDelegate: Application state is completed. FinalApplicationStatus=SUCCEEDED. Redirecting to job history server
      Exception in thread "main" java.lang.IllegalArgumentException: No enum const class org.apache.hadoop.mapreduce.TaskType.map
      	at java.lang.Enum.valueOf(Enum.java:214)
      	at org.apache.hadoop.mapreduce.TaskType.valueOf(TaskType.java:27)
      	at org.apache.hadoop.mapreduce.tools.CLI.displayTasks(CLI.java:572)
      	at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:316)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      	at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1244)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              devaraj Devaraj Kavali
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: