Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5002

getApplicationReport call may raise NPE for removed queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      getApplicationReport call may raise NPE

      Exception in thread "main" java.lang.NullPointerException: java.lang.NullPointerException
       org.apache.hadoop.yarn.server.resourcemanager.security.QueueACLsManager.checkAccess(QueueACLsManager.java:57)
       org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.checkAccess(ClientRMService.java:279)
       org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.getApplications(ClientRMService.java:760)
       org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.getApplications(ClientRMService.java:682)
       org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.getApplications(ApplicationClientProtocolPBServiceImpl.java:234)
       org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:425)
       org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
       org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
       org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2268)
       org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2264)
       java.security.AccessController.doPrivileged(Native Method)
       javax.security.auth.Subject.doAs(Subject.java:422)
       org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1708)
       org.apache.hadoop.ipc.Server$Handler.run(Server.java:2262)
      
       sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
       sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       java.lang.reflect.Constructor.newInstance(Constructor.java:423)
       org.apache.hadoop.yarn.ipc.RPCUtil.instantiateException(RPCUtil.java:53)
       org.apache.hadoop.yarn.ipc.RPCUtil.unwrapAndThrowException(RPCUtil.java:107)
       org.apache.hadoop.yarn.api.impl.pb.client.ApplicationClientProtocolPBClientImpl.getApplications(ApplicationClientProtocolPBClientImpl.java:254)
       sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       java.lang.reflect.Method.invoke(Method.java:498)
       org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:256)
       org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:104)
       com.sun.proxy.$Proxy18.getApplications(Unknown Source)
       org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.getApplications(YarnClientImpl.java:479)
       org.apache.hadoop.mapred.ResourceMgrDelegate.getAllJobs(ResourceMgrDelegate.java:135)
       org.apache.hadoop.mapred.YARNRunner.getAllJobs(YARNRunner.java:167)
       org.apache.hadoop.mapreduce.Cluster.getAllJobStatuses(Cluster.java:294)
       org.apache.hadoop.mapreduce.tools.CLI.listJobs(CLI.java:553)
       org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:338)
       org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
       org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
       org.apache.hadoop.mapred.JobClient.main(JobClient.java:1274)
      

      Attachments

        1. YARN-5002.1.patch
          15 kB
          Jian He
        2. YARN-5002.2.patch
          15 kB
          Jian He
        3. YARN-5002.3.patch
          15 kB
          Jian He

        Activity

          People

            jianhe Jian He
            ssathish@hortonworks.com Sumana Sathish
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: