hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1977) hadoop job -kill , -status causes NullPointerException
Date Tue, 02 Oct 2007 06:18:50 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enis Soztutar updated HADOOP-1977:
----------------------------------

    Attachment: NPEinJobClient_v1.patch

The problem is ─▒ndeed in the JobConf initialization. The patch fixes the problem, changes
{{LocalJobRunner#getJobStatus}} and {{#getJobProfile}} to return null if job could not be
found. Now we have undocumented feature that the methods at {{JobSubmissionProtocol}} expects
valid arguments(existing jobid's), but  {{JobSubmissionProtocol#getJobStatus()}} and {{JobSubmissionProtocol#getJobProfile()}}
does not. 

lohit could you please try the patch, and report back if it works.  

> hadoop job -kill , -status causes NullPointerException
> ------------------------------------------------------
>
>                 Key: HADOOP-1977
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1977
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.14.1
>            Reporter: lohit vijayarenu
>            Assignee: Enis Soztutar
>            Priority: Blocker
>             Fix For: 0.14.2
>
>         Attachments: NPEinJobClient_v1.patch
>
>
> hadoop job -kill/-status seems to cause NullPointerException
> As an example, I started a streaming job and tried to kill it. This raises NullPointerException
> [lohit@krygw1000 mapred]$ bin/hadoop job  -Dmapred.job.tracker=kry1443:56225 -kill job_200710011856_0001
> 07/10/01 18:57:07 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker,
sessionId=
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.hadoop.mapred.LocalJobRunner$Job.access$600(LocalJobRunner.java:51)
>         at org.apache.hadoop.mapred.LocalJobRunner.getJobStatus(LocalJobRunner.java:296)
>         at org.apache.hadoop.mapred.JobClient.getJob(JobClient.java:512)
>         at org.apache.hadoop.mapred.JobClient.run(JobClient.java:791)
>         at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:187)
>         at org.apache.hadoop.mapred.JobClient.main(JobClient.java:827)
> [lohit@krygw1000 mapred]$ 
> So does 'hadoop job -status'
> [lohit@krygw1000 mapred]$hadoop job -Dmapred.job.tracker=kry1443:56225 -status job_200710011856_0001
> 07/10/01 18:57:21 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker,
sessionId=
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.hadoop.mapred.LocalJobRunner$Job.access$600(LocalJobRunner.java:51)
>         at org.apache.hadoop.mapred.LocalJobRunner.getJobStatus(LocalJobRunner.java:296)
>         at org.apache.hadoop.mapred.JobClient.getJob(JobClient.java:512)
>         at org.apache.hadoop.mapred.JobClient.run(JobClient.java:782)
>         at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:187)
>         at org.apache.hadoop.mapred.JobClient.main(JobClient.java:827)
> [lohit@krygw1000 mapred]$

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message