Skip to content

Commit

Permalink
use setIfMissing instead of setAppName
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Jul 21, 2015
1 parent 18aa4ad commit e24991a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,9 @@ class SparkILoop(
val jars = SparkILoop.getAddedJars
val conf = new SparkConf()
.setMaster(getMaster())
.setAppName(sys.props.getOrElse("spark.app.name", "Spark shell"))
.setJars(jars)
.set("spark.repl.class.uri", intp.classServerUri)
.setIfMissing("spark.app.name", "Spark shell")
if (execUri != null) {
conf.set("spark.executor.uri", execUri)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ object Main extends Logging {
val jars = getAddedJars
val conf = new SparkConf()
.setMaster(getMaster)
.setAppName(sys.props.getOrElse("spark.app.name", "Spark shell"))
.setJars(jars)
.set("spark.repl.class.uri", classServer.uri)
.setIfMissing("spark.app.name", "Spark shell")
logInfo("Spark class server started at " + classServer.uri)
if (execUri != null) {
conf.set("spark.executor.uri", execUri)
Expand Down

0 comments on commit e24991a

Please sign in to comment.