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

Vinod Kumar Vavilapalli updated MAPREDUCE-3348:
-----------------------------------------------

        Fix Version/s: 0.23.2
    Affects Version/s:     (was: 0.24.0)
                       0.23.0
               Status: Open  (was: Patch Available)

I don't like the fact that we have to rely on ApplicationReport being null, but 
can live with it for now. We should add different exceptions like 
NotFoundException, AccessControlException which we can then use for app, queue, 
node etc.

Looks good otherwise. Couple of minor nit:
 - Please add a comment to ClientRMService.getApplicationReport() when we 
return with null report. Also, clarify the same thing by adding a javadoc for 
this method.
 - Can you also change the two log statements "Could not get Job info from RM 
for job ..." in ClientServiceDelegate to INFO?
                
> mapred job -status fails to give info even if the job is present in History
> ---------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-3348
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3348
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.0
>            Reporter: Devaraj K
>            Assignee: Devaraj K
>             Fix For: 0.23.2
>
>         Attachments: MAPREDUCE-3348.patch
>
>
> It is trying to get the app report from the RM  for the job, RM throws 
> exception when it doesn't find and then it is giving the same exception 
> without trying from History Server.
> {code}
> 11/11/03 08:47:27 INFO ipc.HadoopYarnRPC: Creating a HadoopYarnProtoRpc proxy 
> for protocol interface org.apache.hadoop.mapred                               
>                                                    uce.v2.api.MRClientProtocol
> 11/11/03 08:47:28 WARN mapred.ClientServiceDelegate: Exception thrown by 
> remote end.
> RemoteTrace:
>  at LocalTrace:
>         org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl: 
> Trying to get information for an absent applicat                              
>                                                     ion 
> application_1320278804241_0002
>         at 
> org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:142)
>         at $Proxy6.getApplicationReport(Unknown Source)
>         at 
> org.apache.hadoop.yarn.api.impl.pb.client.ClientRMProtocolPBClientImpl.getApplicationReport(ClientRMProtocolPBClie
>                                                                               
>     ntImpl.java:111)
>         at 
> org.apache.hadoop.mapred.ResourceMgrDelegate.getApplicationReport(ResourceMgrDelegate.java:321)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.getProxy(ClientServiceDelegate.java:137)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:273)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.getJobStatus(ClientServiceDelegate.java:353)
>         at 
> org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:429)
>         at org.apache.hadoop.mapreduce.Cluster.getJob(Cluster.java:186)
>         at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:240)
>         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:1106)
> Exception in thread "main" RemoteTrace:
>  at Local Trace:
>         org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl: 
> Trying to get information for an absent applicat                              
>                                                     ion 
> application_1320278804241_0002
>         at 
> org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine$Invoker.invoke(ProtoOverHadoopRpcEngine.java:142)
>         at $Proxy6.getApplicationReport(Unknown Source)
>         at 
> org.apache.hadoop.yarn.api.impl.pb.client.ClientRMProtocolPBClientImpl.getApplicationReport(ClientRMProtocolPBClie
>                                                                               
>     ntImpl.java:111)
>         at 
> org.apache.hadoop.mapred.ResourceMgrDelegate.getApplicationReport(ResourceMgrDelegate.java:321)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.getProxy(ClientServiceDelegate.java:137)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:273)
>         at 
> org.apache.hadoop.mapred.ClientServiceDelegate.getJobStatus(ClientServiceDelegate.java:353)
>         at 
> org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:429)
>         at org.apache.hadoop.mapreduce.Cluster.getJob(Cluster.java:186)
>         at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:240)
>         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:1106)
> {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

        

Reply via email to