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

Sergio Peña commented on HIVE-14238:
------------------------------------

Hi [~lirui] Checking the parent dir permissions should be enough as CREATE 
EXTERNAL will create the location directory if it does not exist, and that 
requires parent dir permissions. Not sure why recursively was added, but I 
don't think that is needed.

> Ownership shouldn't be checked if external table location doesn't exist
> -----------------------------------------------------------------------
>
>                 Key: HIVE-14238
>                 URL: https://issues.apache.org/jira/browse/HIVE-14238
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Rui Li
>            Assignee: Rui Li
>
> When creating external table with SQL authorization, we require RWX 
> permission + ownership of the table location. If the location doesn't exist, 
> we check on parent dir (recursively), which means we require the user owns 
> everything under parent dir. I think this is not necessary - we don't have to 
> check ownership of parent dir, or we just check non-recursively.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to