Harsh J created HIVE-8606: ----------------------------- Summary: [hs2] Do not unnecessarily call setPermission on staging directories Key: HIVE-8606 URL: https://issues.apache.org/jira/browse/HIVE-8606 Project: Hive Issue Type: Improvement Components: HiveServer2 Affects Versions: 0.13.1 Reporter: Harsh J Assignee: Harsh J Priority: Minor
HS2 has made setPermission mandatory within its CLIService#setupStagingDir method as a result of HIVE-6602. This causes HS2 to fail to start if the owner of the staging directory is not the same user as it, even though the directory is already 777. This is because only owners and superusers of a directory can change its permission, not group or others. Failure appears as: {code} Caused by: org.apache.hive.service.ServiceException: Error setting stage directories at org.apache.hive.service.cli.CLIService.start(CLIService.java:132) at org.apache.hive.service.CompositeService.start(CompositeService.java:70) ... 8 more Caused by: org.apache.hadoop.security.AccessControlException: Permission denied {code} We should only call the setPermission if it is unsatisfactory. -- This message was sent by Atlassian JIRA (v6.3.4#6332)