hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devaraj K (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-2309) While querying the Job Statics from the command-line, if we give wrong status name then there is no warning or response.
Date Thu, 10 Feb 2011 06:38:57 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992881#comment-12992881
] 

Devaraj K commented on MAPREDUCE-2309:
--------------------------------------

In  version 0.20.2, using the command "hadoop job -list-attempt-ids"

{code:xml} 

linux124:/home/devaraj/hadoop/bin # ./hadoop job -list-attempt-ids job_201102101059_0008 type
state
linux124:/home/devaraj/hadoop/bin # 

{code} 


If we give the state other than "pending", "running", "completed", "failed", "killed" or task
type other than "map", "reduce", "setup", "cleanup" it is simply returning to the shell. 

In  version 0.23 snapshot, using the command "mapred job -list-attempt-ids"


{code:xml} 

inux124:/home/devaraj/hadoop_latest/hadoop-mapred-0.23.0-SNAPSHOT/bin # ./mapred job -list-attempt-ids
job_201102101036_0002 type state
11/02/10 17:07:21 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.type
	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:513)
	at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:290)
	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:1084)

{code} 

It is throwing the above exception if we give invalid task type.

Instead we can display some message like "Unsupported task state." or "Unsupported task type."


> While querying the Job Statics from the command-line, if we give wrong status name then
there is no warning or response.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-2309
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2309
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: jobtracker
>    Affects Versions: 0.23.0
>            Reporter: Devaraj K
>            Priority: Minor
>
> If we try to get the jobs information by giving the wrong status name from the command
line interface, it is not giving any warning or response.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message