Github user sun-rui commented on the pull request:
https://github.com/apache/spark/pull/8832#issuecomment-141860945
@falaki , are you using RStudio, where spark-submit is not involved?
I don't think we can simply set a default value. Because it is possible
that the default mode does not match spark master. For example, if the spark
master is 'yarn-cluster', the default mode is "client", that does not match.
The correct policy is:
if the master does not contain deploy mode information, the deploy mode
is "client",
else get deploy mode from the master URL.
I think this issue is not related to SparkR only. @andrewor14, any policy
when handling default configurations when a spark-application is not launched
via spark-submit? Should we extract some logic from spark-submit so that the
logic can be called in non-spark-submit cases to keep consistency?
---
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]