Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/158#discussion_r11006607
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -127,6 +125,11 @@ class SparkContext(
val master = conf.get("spark.master")
val appName = conf.get("spark.app.name")
+
+ // Generate the random name for a temp folder in Tachyon
+ // Add a timestamp as the suffix here to make it more safe
+ val tachyonFolderName = new Random().nextInt() + "_" +
System.currentTimeMillis()
--- End diff --
Use
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/UUID.html#randomUUID()
instead, and maybe call it "spark-" followed by that.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---