Skip to content

Commit

Permalink
rebase to sparkcontext change
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzhan committed May 1, 2015
1 parent 6e121e0 commit ffb8e00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
val extBlkFolderName = "spark-" + randomUUID.toString()
@deprecated("Use extBlkFolderName instead.", "1.4.0")
val tachyonFolderName = extBlkFolderName
conf.set("spark.extBlkStore.folderName", extBlkFolderName)

def isLocal: Boolean = (master == "local" || master.startsWith("local["))

Expand Down Expand Up @@ -389,7 +388,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
}
}

_conf.set("spark.tachyonStore.folderName", tachyonFolderName)
_conf.set("spark.extBlkStore.folderName", extBlkFolderName)

if (master == "yarn-client") System.setProperty("SPARK_YARN_MODE", "true")

Expand Down

0 comments on commit ffb8e00

Please sign in to comment.