hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-9474) truncate table changes permissions on the target
Date Tue, 27 Jan 2015 18:34:34 GMT

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

Szehon Ho commented on HIVE-9474:
---------------------------------

Yes, I hit the same issue when trying to make a test for permission inheritance that does
manual comparison of permission using HDFS api's.  You can put a new test in FolderPermissionTestBase,
it will get executed by subclasses TestExtendedAcls and TestFolderPermissions.  Else, you
can make a new test that is similar.

> truncate table changes permissions on the target
> ------------------------------------------------
>
>                 Key: HIVE-9474
>                 URL: https://issues.apache.org/jira/browse/HIVE-9474
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>            Priority: Minor
>             Fix For: 0.15.0
>
>         Attachments: HIVE-9474.1.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Create a table test(a string); 
> Hive> create table test(key string);
> Change the /user/hive/warehouse/test  permission to something else other than the default,
like 777.
> Hive> dfs -chmod 777 /user/hive/warehouse/test;
> Hive> dfs -ls -d /user/hive/warehouse/test;
> drwxrwxrwx   - axu wheel         68 2015-01-26 18:45 /user/hive/warehouse/test
> Then truncate table test; 
> Hive> truncate table test;
> The permission goes back to the default.
> hive> dfs -ls -d /user/hive/warehouse/test;
> drwxr-xr-x   - axu wheel         68 2015-01-27 10:09 /user/hive/warehouse/test



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

Mime
View raw message