hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joydeep Sen Sarma (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1778) simultaneously launched queries collide on hive intermediate directories
Date Tue, 07 Dec 2010 18:19:09 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968859#action_12968859
] 

Joydeep Sen Sarma commented on HIVE-1778:
-----------------------------------------

whatever works - we could pass in hash the query string and time (perhaps a nanosecond timer)
to come up with a better seed for the random generator for example.

> 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.


Mime
View raw message