aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorImran Rashid <irashid@cloudera.com>2015-02-04 01:02:20 -0800
committerReynold Xin <rxin@databricks.com>2015-02-04 01:02:20 -0800
commit5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15 (patch)
tree300f69a183b2388d43071730acdc0700b155bc4b /core
parenta74cbbf12fa59df37eb7172652138c78707d33d8 (diff)
downloadspark-5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15.tar.gz
spark-5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15.tar.bz2
spark-5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15.zip
[SPARK-5574] use given name prefix in dir
https://issues.apache.org/jira/browse/SPARK-5574 very minor, doesn't effect external behavior at all. Note that after this change, some of these dirs no longer will have "spark" in the name at all. I could change those locations that do pass in a name prefix to also include "spark", eg. "blockmgr" -> "spark-blockmgr" Author: Imran Rashid <irashid@cloudera.com> Closes #4344 from squito/SPARK-5574 and squashes the following commits: 33a84fe [Imran Rashid] use given name prefix in dir
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/util/Utils.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala
index e9f2aed9ff..3c8a0e40bf 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -279,7 +279,7 @@ private[spark] object Utils extends Logging {
maxAttempts + " attempts!")
}
try {
- dir = new File(root, "spark-" + UUID.randomUUID.toString)
+ dir = new File(root, namePrefix + "-" + UUID.randomUUID.toString)
if (dir.exists() || !dir.mkdirs()) {
dir = null
} else {