Github user rmetzger commented on the pull request: https://github.com/apache/flink/pull/1978#issuecomment-219987643 Forgetting an argument leads to a NPE ``` robert@cdh544-master:~/flink/build-target$ ./bin/flink run -m yarn-cluster ./examples/batch/WordCount.jar YARN cluster mode detected. Switching Log4j output to console 2016-05-18 10:30:12,762 ERROR org.apache.flink.yarn.cli.FlinkYarnSessionCli - Missing required argument yn 2016-05-18 10:30:12,762 ERROR org.apache.flink.yarn.cli.FlinkYarnSessionCli - Missing required argument yn Usage: Required -yn,--yarncontainer <arg> Number of YARN container to allocate (=Number of Task Managers) Optional -yD <arg> Dynamic properties -yd,--yarndetached Start detached -yjm,--yarnjobManagerMemory <arg> Memory for JobManager Container [in MB] -ynm,--yarnname <arg> Set a custom name for the application on YARN -yq,--yarnquery Display available YARN resources (memory, cores) -yqu,--yarnqueue <arg> Specify YARN queue. -ys,--yarnslots <arg> Number of slots per TaskManager -yst,--yarnstreaming Start Flink in streaming mode -ytm,--yarntaskManagerMemory <arg> Memory per TaskManager Container [in MB] ------------------------------------------------------------ The program finished with the following exception: java.lang.NullPointerException at org.apache.flink.yarn.cli.FlinkYarnSessionCli.createClient(FlinkYarnSessionCli.java:370) at org.apache.flink.yarn.cli.FlinkYarnSessionCli.createClient(FlinkYarnSessionCli.java:55) at org.apache.flink.client.CliFrontend.getClient(CliFrontend.java:948) at org.apache.flink.client.CliFrontend.run(CliFrontend.java:302) at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1067) at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1118) ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---