Skip to content

Commit 1dec709

Browse files
committed
Minor updates to Javadocs.
1 parent 7f36999 commit 1dec709

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private[spark] object Utils extends Logging {
449449
}
450450

451451
/**
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
453453
* multiple settings, which are used with the following precedence:
454454
*
455455
* - 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 {
471471
/**
472472
* Gets or creates the directories listed in spark.local.dir or SPARK_LOCAL_DIRS,
473473
* and returns only the directories that exist / could be created.
474+
*
475+
* If no directories could be created, this will return an empty list.
474476
*/
475477
private[spark] def getOrCreateLocalRootDirs(conf: SparkConf): Array[String] = {
476478
val confValue = if (isRunningInYarnContainer(conf)) {

0 commit comments

Comments
 (0)