You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "yikf (Jira)" <ji...@apache.org> on 2021/06/10 12:45:00 UTC

[jira] [Resolved] (YARN-10817) Avoid java.lang.NullPointerException when use yarn shell

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

yikf resolved YARN-10817.
-------------------------
    Resolution: Fixed

> 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
>              Labels: pull-request-available
>             Fix For: 3.2.1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When we use yarn queue-status, we encounter a null pointer exception, As follow:
> Like this, and:
>  yarn cluster
>  yarn queue
>  yarn node
> {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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org