hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj K (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-4120) mapred job -list-attempt-ids fails to get attempt ids
Date Sun, 08 Apr 2012 04:12:39 GMT
mapred job -list-attempt-ids fails to get attempt ids
-----------------------------------------------------

                 Key: MAPREDUCE-4120
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4120
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: client, mrv2
    Affects Versions: 2.0.0, 3.0.0
            Reporter: Devaraj K
            Assignee: Devaraj K
            Priority: Blocker


{code:xml}
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
{code}
\\
\\
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.
{code:xml}
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)
{code}
\\
\\
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.
{code:xml}
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)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message