File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/scala/org/apache/spark/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ private[spark] object Utils extends Logging {
449
449
}
450
450
451
451
/**
452
- * Get the path of temporary directory. Spark's local directories can be configured through
452
+ * Get the path of a temporary directory. Spark's local directories can be configured through
453
453
* multiple settings, which are used with the following precedence:
454
454
*
455
455
* - If called from inside of a YARN container, this will return a directory chosen by YARN.
@@ -471,6 +471,8 @@ private[spark] object Utils extends Logging {
471
471
/**
472
472
* Gets or creates the directories listed in spark.local.dir or SPARK_LOCAL_DIRS,
473
473
* and returns only the directories that exist / could be created.
474
+ *
475
+ * If no directories could be created, this will return an empty list.
474
476
*/
475
477
private [spark] def getOrCreateLocalRootDirs (conf : SparkConf ): Array [String ] = {
476
478
val confValue = if (isRunningInYarnContainer(conf)) {
You can’t perform that action at this time.
0 commit comments