Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/1715#issuecomment-51137420
Hey Cheng, a couple of comments on this:
- In Java, we should be able to run without a `--primary` if only `--jars`
and `--main-class` are given. I'd rather support that than add the primary
argument here.
- If we do this, then the `--primary` argument becomes relevant only for
Python, and we can give it a specific name there, e.g. `--main-file`. Another
option is to add `--module` and execute the `__main__` function in a specific
module with `python -m module-name`. This is the more Pythonic way to do it
AFAIK but it will also be more work, so I'd just stick to `--main-file` in 1.1
and add `--module` later.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]