Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/14784#discussion_r77051296
--- Diff: R/pkg/R/sparkR.R ---
@@ -365,6 +365,10 @@ sparkR.session <- function(
}
overrideEnvs(sparkConfigMap, paramMap)
}
+ if (nzchar(master)) {
+ assign("spark.master", master, envir = sparkConfigMap)
--- End diff --
Right, I think that could go either way
```
scala> val a = SparkSession.builder().master("yarn").config("spark.master",
"local[3]").getOrCreate()
scala> a.conf.get("master")
java.util.NoSuchElementException: master
scala> a.conf.get("spark.master")
res8: String = local[3]
```
I think the current R implementation mimic the programmatic behavior rather
than commandline.
We could certainly change it - just want to highlight this is a breaking
change if we are to silently flip the precedence order, and would think we
should avoid unless if we have reason to.
---
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]