Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/2211#discussion_r16933680
--- Diff: repl/src/main/scala/org/apache/spark/repl/SparkILoop.scala ---
@@ -965,11 +966,9 @@ class SparkILoop(in0: Option[BufferedReader],
protected val out: JPrintWriter,
def createSparkContext(): SparkContext = {
val execUri = System.getenv("SPARK_EXECUTOR_URI")
- val jars = SparkILoop.getAddedJars
val conf = new SparkConf()
.setMaster(getMaster())
.setAppName("Spark shell")
- .setJars(jars)
--- End diff --
When you create a `SparkConf` it picks up `spark.jars` anyway, so we
shouldn't set it again here. For Windows, `getAddedJars` actually does some
post-processing on the jar paths, so if we set it again here then
`sys.props("spark.jars")` and `sc.getConf.get("spark.jars")` will be
inconsistent.
---
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]