Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1233#discussion_r14252544
--- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
@@ -291,4 +294,25 @@ class SparkConf(loadDefaults: Boolean) extends
Cloneable with Logging {
def toDebugString: String = {
settings.toArray.sorted.map{case (k, v) => k + "=" + v}.mkString("\n")
}
+
+ def loadDefaultProperties() {
+ var seq = Seq[(String, String)]()
+
+ val defaultConfigFile = "spark-defaults.conf"
--- End diff --
I think this will end up causing disagreement with spark-submit options.
spark-submit will only load spark-defaults.conf if `--properties-file` is
not defined in the command line. It seems like this code will always load
spark-defaults.conf if one exists.
---
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.
---