Repository: spark
Updated Branches:
  refs/heads/master a74cbbf12 -> 5aa0f219d


[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 <[email protected]>

Closes #4344 from squito/SPARK-5574 and squashes the following commits:

33a84fe [Imran Rashid] use given name prefix in dir


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/5aa0f219
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5aa0f219
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5aa0f219

Branch: refs/heads/master
Commit: 5aa0f219d1f8e8d3bb083dd547532ebb72ba7a15
Parents: a74cbbf
Author: Imran Rashid <[email protected]>
Authored: Wed Feb 4 01:02:20 2015 -0800
Committer: Reynold Xin <[email protected]>
Committed: Wed Feb 4 01:02:20 2015 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/util/Utils.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5aa0f219/core/src/main/scala/org/apache/spark/util/Utils.scala
----------------------------------------------------------------------
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 e9f2aed..3c8a0e4 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 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to