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

yikf updated YARN-10817:
------------------------
    Description: 
When we use yarn queue-status, we encounter a null pointer exception, As follow:

Like this, and:
 yarn cluster
 yarn queue
 yarn node
 yarn application
{code:java}
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)
{code}

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

There are errors like this, and there are:

yarn top 
yarn cluster
yarn queue
yarn node
yarn application
{code:java}
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)
{code}


> Avoid java.lang.NullPointerException when use yarn shell
> --------------------------------------------------------
>
>                 Key: YARN-10817
>                 URL: https://issues.apache.org/jira/browse/YARN-10817
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 3.2.1
>            Reporter: yikf
>            Priority: Minor
>             Fix For: 3.2.1
>
>
> When we use yarn queue-status, we encounter a null pointer exception, As 
> follow:
> Like this, and:
>  yarn cluster
>  yarn queue
>  yarn node
>  yarn application
> {code:java}
> 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)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to