yikf opened a new pull request #3093:
URL: https://github.com/apache/hadoop/pull/3093
**What changes were proposed in this pull request?**
Currently, We will encounter NullPointerException when we use some yarn
shell commands, As follow:
```
Missing 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)
```
Like this, and
```
yarn cluster
yarn queue
yarn node
```
This is beacuse we dont`t init the `YarnClient` when missing argument for
options, This PR will fix the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]