Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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