[jira] [Updated] (MAPREDUCE-6110) JobHistoryServer CLI throws NullPointerException with job ids that do not exist

2016-01-12 Thread Kai Sasaki (JIRA)

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

Kai Sasaki updated MAPREDUCE-6110:
--
Attachment: MAPREDUCE-6110.01.patch

> JobHistoryServer CLI throws NullPointerException with job ids that do not 
> exist
> ---
>
> Key: MAPREDUCE-6110
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6110
> Project: Hadoop Map/Reduce
>  Issue Type: Bug
>  Components: jobhistoryserver
>Reporter: Li Lu
>Priority: Minor
> Attachments: MAPREDUCE-6110.01.patch
>
>
> When using JobHistoryServer CLI to query a job id that does not exist on the 
> server, it may throw NullPointerException sometimes. 
> I tried "mapred job -events  0 100", and the result was:
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.mapreduce.tools.CLI.listEvents(CLI.java:487)
>   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:1237)
> Similar symptoms also appear with -list-attempt-ids, but were fine with 
> -status and -set-priority. 
> I traced back to CLI.listEvents, and line 487 is:
> {code}
> TaskCompletionEvent[] events = job.
>   getTaskCompletionEvents(fromEventId, numEvents);
> {code}
> The job object is obtained from JobID.forName(jobid)) (line 316), which will 
> return null if the job does not exist on server. 
> Maybe we want to have some behaviors consistent with -status here, by simply 
> reporting jobId does not exist? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MAPREDUCE-6110) JobHistoryServer CLI throws NullPointerException with job ids that do not exist

2016-01-12 Thread Kai Sasaki (JIRA)

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

Kai Sasaki updated MAPREDUCE-6110:
--
Assignee: Kai Sasaki
  Status: Patch Available  (was: Open)

> JobHistoryServer CLI throws NullPointerException with job ids that do not 
> exist
> ---
>
> Key: MAPREDUCE-6110
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6110
> Project: Hadoop Map/Reduce
>  Issue Type: Bug
>  Components: jobhistoryserver
>Reporter: Li Lu
>Assignee: Kai Sasaki
>Priority: Minor
> Attachments: MAPREDUCE-6110.01.patch
>
>
> When using JobHistoryServer CLI to query a job id that does not exist on the 
> server, it may throw NullPointerException sometimes. 
> I tried "mapred job -events  0 100", and the result was:
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.mapreduce.tools.CLI.listEvents(CLI.java:487)
>   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:1237)
> Similar symptoms also appear with -list-attempt-ids, but were fine with 
> -status and -set-priority. 
> I traced back to CLI.listEvents, and line 487 is:
> {code}
> TaskCompletionEvent[] events = job.
>   getTaskCompletionEvents(fromEventId, numEvents);
> {code}
> The job object is obtained from JobID.forName(jobid)) (line 316), which will 
> return null if the job does not exist on server. 
> Maybe we want to have some behaviors consistent with -status here, by simply 
> reporting jobId does not exist? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MAPREDUCE-6110) JobHistoryServer CLI throws NullPointerException with job ids that do not exist

2016-02-05 Thread Kai Sasaki (JIRA)

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

Kai Sasaki updated MAPREDUCE-6110:
--
Attachment: MAPREDUCE-6110.02.patch

> JobHistoryServer CLI throws NullPointerException with job ids that do not 
> exist
> ---
>
> Key: MAPREDUCE-6110
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6110
> Project: Hadoop Map/Reduce
>  Issue Type: Bug
>  Components: jobhistoryserver
>Reporter: Li Lu
>Assignee: Kai Sasaki
>Priority: Minor
> Attachments: MAPREDUCE-6110.01.patch, MAPREDUCE-6110.02.patch
>
>
> When using JobHistoryServer CLI to query a job id that does not exist on the 
> server, it may throw NullPointerException sometimes. 
> I tried "mapred job -events  0 100", and the result was:
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.mapreduce.tools.CLI.listEvents(CLI.java:487)
>   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:1237)
> Similar symptoms also appear with -list-attempt-ids, but were fine with 
> -status and -set-priority. 
> I traced back to CLI.listEvents, and line 487 is:
> {code}
> TaskCompletionEvent[] events = job.
>   getTaskCompletionEvents(fromEventId, numEvents);
> {code}
> The job object is obtained from JobID.forName(jobid)) (line 316), which will 
> return null if the job does not exist on server. 
> Maybe we want to have some behaviors consistent with -status here, by simply 
> reporting jobId does not exist? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MAPREDUCE-6110) JobHistoryServer CLI throws NullPointerException with job ids that do not exist

2016-03-19 Thread Kai Sasaki (JIRA)

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

Kai Sasaki updated MAPREDUCE-6110:
--
Attachment: MAPREDUCE-6110.03.patch

> JobHistoryServer CLI throws NullPointerException with job ids that do not 
> exist
> ---
>
> Key: MAPREDUCE-6110
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6110
> Project: Hadoop Map/Reduce
>  Issue Type: Bug
>  Components: jobhistoryserver
>Reporter: Li Lu
>Assignee: Kai Sasaki
>Priority: Minor
> Attachments: MAPREDUCE-6110.01.patch, MAPREDUCE-6110.02.patch, 
> MAPREDUCE-6110.03.patch
>
>
> When using JobHistoryServer CLI to query a job id that does not exist on the 
> server, it may throw NullPointerException sometimes. 
> I tried "mapred job -events  0 100", and the result was:
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.mapreduce.tools.CLI.listEvents(CLI.java:487)
>   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:1237)
> Similar symptoms also appear with -list-attempt-ids, but were fine with 
> -status and -set-priority. 
> I traced back to CLI.listEvents, and line 487 is:
> {code}
> TaskCompletionEvent[] events = job.
>   getTaskCompletionEvents(fromEventId, numEvents);
> {code}
> The job object is obtained from JobID.forName(jobid)) (line 316), which will 
> return null if the job does not exist on server. 
> Maybe we want to have some behaviors consistent with -status here, by simply 
> reporting jobId does not exist? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MAPREDUCE-6110) JobHistoryServer CLI throws NullPointerException with job ids that do not exist

2016-03-22 Thread Li Lu (JIRA)

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

Li Lu updated MAPREDUCE-6110:
-
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 2.9.0
   Status: Resolved  (was: Patch Available)

I have committed the patch into trunk and branch-2. Thanks [~lewuathe] for the 
contribution! 

> JobHistoryServer CLI throws NullPointerException with job ids that do not 
> exist
> ---
>
> Key: MAPREDUCE-6110
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6110
> Project: Hadoop Map/Reduce
>  Issue Type: Bug
>  Components: jobhistoryserver
>Reporter: Li Lu
>Assignee: Kai Sasaki
>Priority: Minor
> Fix For: 2.9.0
>
> Attachments: MAPREDUCE-6110.01.patch, MAPREDUCE-6110.02.patch, 
> MAPREDUCE-6110.03.patch
>
>
> When using JobHistoryServer CLI to query a job id that does not exist on the 
> server, it may throw NullPointerException sometimes. 
> I tried "mapred job -events  0 100", and the result was:
> Exception in thread "main" java.lang.NullPointerException
>   at org.apache.hadoop.mapreduce.tools.CLI.listEvents(CLI.java:487)
>   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:1237)
> Similar symptoms also appear with -list-attempt-ids, but were fine with 
> -status and -set-priority. 
> I traced back to CLI.listEvents, and line 487 is:
> {code}
> TaskCompletionEvent[] events = job.
>   getTaskCompletionEvents(fromEventId, numEvents);
> {code}
> The job object is obtained from JobID.forName(jobid)) (line 316), which will 
> return null if the job does not exist on server. 
> Maybe we want to have some behaviors consistent with -status here, by simply 
> reporting jobId does not exist? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)