Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21450#discussion_r191929581
--- Diff:
launcher/src/test/java/org/apache/spark/launcher/SparkSubmitCommandBuilderSuite.java
---
@@ -190,6 +194,23 @@ public void testSparkRShell() throws Exception {
env.get("SPARKR_SUBMIT_ARGS"));
}
+ @Test
+ public void testExamplesRunnerNoArg() throws Exception {
--- End diff --
Right, the output should make sense also.
When the launcher library detects an invalid command it should be running
`spark-submit --usage-error`, which should print usage with the overridden
description from the `run-example` script. That's done in `Main.java` when it
catches an `IllegalArgumentException`.
Seems that's not exactly what's happening here.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]