[ https://issues.apache.org/jira/browse/HIVE-1778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969227#action_12969227 ]
Bennie Schut commented on HIVE-1778: ------------------------------------ Perhaps related to HIVE-1019 In that case we use aa UUID which works great for this stuff. > simultaneously launched queries collide on hive intermediate directories > ------------------------------------------------------------------------ > > Key: HIVE-1778 > URL: https://issues.apache.org/jira/browse/HIVE-1778 > Project: Hive > Issue Type: Bug > Reporter: Joydeep Sen Sarma > Assignee: Edward Capriolo > > we saw one instance of multiple queries for the same user launched in > parallel (from a workflow engine) use the same intermediate directories. > which is obviously super bad but not suprising considering how we allocate > them: > Random rand = new Random(); > String executionId = "hive_" + format.format(new Date()) + "_" + > Math.abs(rand.nextLong()); > Java documentation says: Two Random objects created within the same > millisecond will have the same sequence of random numbers. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.