Github user kelepi commented on a diff in the pull request: https://github.com/apache/spark/pull/2729#discussion_r18630974 --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala --- @@ -233,7 +233,11 @@ private[spark] object Utils extends Logging { } /** Create a temporary directory inside the given parent directory */ - def createTempDir(root: String = System.getProperty("java.io.tmpdir")): File = { + def createTempDir(): File = { + val root: String = SparkEnv.get.conf.contains("spark.tmp.dir") match { --- End diff -- Thanks @srowen for the comment. That's more clear! Currently I am running Spark 1.1 in Standalone mode. And I have set the 'SPARK_LOCAL_DIRS' to data disk, which will store the broadcast Files in the target directory. However, the dependencies for executors will be fetched and stored in the /tmp/ directory. And the dependencies will not be removed. Like the snappy dependency, for example: "snappy-1.0.5.3-f4880c9f-95d9-4ab6-b1c8-8686d0b88f42-libsnappyjava.so" So the /tmp/ directory will grow large.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org