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

Avoid java.lang.NullPointerException when use yarn shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.2.1
    • None
    • client

    Description

      When we use yarn queue-status, we encounter a null pointer exception, As follow:

      Like this, and:
      yarn cluster
      yarn queue
      yarn node

      Missing argument for optionsMissing argument for options
      usage: queue 
        -help                  Displays help for all commands. 
        -status <Queue Name>   List queue information about given queue.
      Exception in thread "main" java.lang.NullPointerException 
          at org.apache.hadoop.yarn.client.cli.YarnCLI.stop(YarnCLI.java:75) 
          at org.apache.hadoop.yarn.client.cli.QueueCLI.main(QueueCLI.java:51)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kaifeiYi yikaifei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m