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

NPE happens when submit distributed shell with non-existing queue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • distributed-shell
    • None

    Description

      when submit the distributed shell with non-existing queue, NullPointerException happens as follows.

      18/05/04 12:20:20 INFO distributedshell.Client: Initializing Client
      18/05/04 12:20:20 INFO distributedshell.Client: Running Client
      18/05/04 12:20:20 INFO client.AHSProxy: Connecting to Application History server at node1/10.1.1.1:10200
      18/05/04 12:20:21 INFO distributedshell.Client: Got Cluster metric info from ASM, numNodeManagers=1
      18/05/04 12:20:21 INFO distributedshell.Client: Got Cluster node info from ASM
      18/05/04 12:20:21 INFO distributedshell.Client: Got node report from ASM for, nodeId=node2:45454, nodeAddressnode2:8042, nodeRackName/rack-9, nodeNumContainers0
      18/05/04 12:20:21 FATAL distributedshell.Client: Error running Client
      java.lang.NullPointerException
              at org.apache.hadoop.yarn.applications.distributedshell.Client.run(Client.java:462)
              at org.apache.hadoop.yarn.applications.distributedshell.Client.main(Client.java:215)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
      

       
      that makes it difficult to find the cause.

      Attachments

        1. YARN-8269.001.patch
          2 kB
          kyungwan nam
        2. YARN-8269.002.patch
          3 kB
          kyungwan nam

        Activity

          People

            kyungwan nam kyungwan nam
            kyungwan nam kyungwan nam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: