Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14269 Performance optimizations for data on S3
  3. HIVE-16346

inheritPerms should be conditional based on the target filesystem

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      Right now, a lot of the logic in Hive.java attempts to set permissions of different files that have been moved / copied. This is only triggered if hive.warehouse.subdir.inherit.perms is set to true.

      However, on blobstores such as S3, there is no concept of file permissions so these calls are unnecessary, which can hurt performance.

      One solution would be to set hive.warehouse.subdir.inherit.perms to false, but this would be a global change that affects an entire HS2 instance. So HDFS tables will no longer have permissions inheritance.

      A better solution would be to make the inheritance of permissions conditional on the target filesystem.

      Attachments

        1. HIVE-16346.1-branch-2.patch
          61 kB
          Sahil Takiar
        2. HIVE-16346.2-branch-2.patch
          27 kB
          Sahil Takiar
        3. HIVE-16346.3-branch-2.patch
          29 kB
          Sahil Takiar

        Issue Links

          Activity

            People

              stakiar Sahil Takiar
              stakiar Sahil Takiar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: