Github user gaborgsomogyi commented on a diff in the pull request:
https://github.com/apache/spark/pull/21450#discussion_r195016477
--- Diff:
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java
---
@@ -138,25 +139,30 @@
case RUN_EXAMPLE:
isExample = true;
+ appResource = SparkLauncher.NO_RESOURCE;
submitArgs = args.subList(1, args.size());
}
this.isExample = isExample;
- OptionParser parser = new OptionParser(true);
- parser.parse(submitArgs);
- this.requiresAppResource = parser.requiresAppResource;
+ if (!submitArgs.isEmpty()) {
--- End diff --
Removed as it leads to the same result.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]