Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8606

[hs2] Do not unnecessarily call setPermission on staging directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.13.1
    • None
    • HiveServer2
    • None

    Description

      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(CLIService.java:132) 
      at org.apache.hive.service.CompositeService.start(CompositeService.java:70) 
      ... 8 more 
      Caused by: org.apache.hadoop.security.AccessControlException: Permission denied 
      

      We should only call the setPermission if it is unsatisfactory.

      Attachments

        Issue Links

          Activity

            People

              qwertymaniac Harsh J
              qwertymaniac Harsh J
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: