Check for shared paths when specifying a location
-------------------------------------------------

                 Key: HIVE-1396
                 URL: https://issues.apache.org/jira/browse/HIVE-1396
             Project: Hadoop Hive
          Issue Type: Improvement
          Components: Metastore
    Affects Versions: 0.6.0
            Reporter: Paul Yang
            Assignee: Paul Yang


When creating a table or adding a partition, the user can manually set the 
location to point to an existing directory. A potential issue could arise where 
two partitions in different tables point to the same location, and neither 
table is marked as external. If the partition is dropped, then the other 
partition will be inaccessible. Or if a housekeeping operation (such as 
archiving in HIVE-1332) modifies the files in the partition, then the data will 
be accessible by one partition but not the other.

To catch this scenario, a check to see whether the location specified in a 
create table or add partition matches an existing partition may be useful. If 
the check hits a match, Hive can print an warning or throw an exception. 

This may not be possible to do because the check is too time consuming to run 
with 1000's of partitions.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to