hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <>
Subject [jira] [Created] (HIVE-8606) [hs2] Do not unnecessarily call setPermission on staging directories
Date Sun, 26 Oct 2014 10:46:33 GMT
Harsh J created HIVE-8606:

             Summary: [hs2] Do not unnecessarily call setPermission on staging directories
                 Key: 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:

Caused by: org.apache.hive.service.ServiceException: Error setting stage directories 
at org.apache.hive.service.cli.CLIService.start( 
at org.apache.hive.service.CompositeService.start( 
... 8 more 
Caused by: Permission denied 

We should only call the setPermission if it is unsatisfactory.

This message was sent by Atlassian JIRA

View raw message