Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4120

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0-alpha, 3.0.0
    • Fix Version/s: None
    • Component/s: client, mrv2
    • Labels:
      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)
      

        Issue Links

          Activity

          Devaraj K made changes -
          Link This issue is duplicated by MAPREDUCE-4019 [ MAPREDUCE-4019 ]
          Devaraj K made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Devaraj K [ devaraj.k ]
          Resolution Duplicate [ 3 ]
          Devaraj K created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Devaraj K
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development