GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/1715
[SPARK-2678][Core] Added "--" to prevent spark-submit from shadowing
application options
JIRA issue: [SPARK-2678](https://issues.apache.org/jira/browse/SPARK-2678)
This PR aims to fix SPARK-2678 in a downward compatible way, and replaces
PR #1699.
All arguments that follow a `--` are passed to user application. Before
this change, `spark-submit` shadows application options:
```bash
# The "--help" option is captured by spark-submit
bin/spark-submit --class Foo userapp.jar --help
```
With the help of `--`, we can pass arbitrary options to user application:
```bash
# The "--help" option is now passed to userapp.jar
bin/spark-submit --class Foo userapp.jar -- --help
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark spark-2678
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/1715.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1715
----
commit 27741380631e4e293d040d8fc206343814467b37
Author: Cheng Lian <[email protected]>
Date: 2014-08-01T10:27:41Z
Added "--" to prevent spark-submit from shadowing application options
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---