Hive
  1. Hive
  2. HIVE-2936

Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Metastore
    • Labels:
      None

      Description

      When the Hive Metastore creates a subdirectory in the Hive warehouse for
      a new table it does so with the default HDFS permissions derived from dfs.umask or dfs.umaskmode. There should be a option to inherit the permissions of the parent directory (default warehouse or custom database directory) so that the table directories have the same permissions as the database directories.

      1. HIVE-2936-2.patch
        8 kB
        Rohini Palaniswamy
      2. ASF.LICENSE.NOT.GRANTED--HIVE-2504.patch
        2 kB
        Rohini Palaniswamy
      3. ASF.LICENSE.NOT.GRANTED--HIVE-2504.patch
        7 kB
        Rohini Palaniswamy
      4. ASF.LICENSE.NOT.GRANTED--HIVE-2504-1.patch
        8 kB
        Rohini Palaniswamy

        Issue Links

          Activity

          Rohini Palaniswamy created issue -
          Rohini Palaniswamy made changes -
          Field Original Value New Value
          Link This issue is a clone of HIVE-2504 [ HIVE-2504 ]
          Rohini Palaniswamy made changes -
          Assignee Chinna Rao Lalam [ chinnalalam ] Rohini Palaniswamy [ rohini ]
          Rohini Palaniswamy made changes -
          Issue Type Bug [ 1 ] New Feature [ 2 ]
          Hadoop Flags Reviewed [ 10343 ]
          Description When the Hive Metastore creates a subdirectory in the Hive warehouse for
          a new table it does so with the default HDFS permissions. Since the default
          dfs.umask value is 022, this means that the new subdirectory will not inherit the
          group write permissions of the hive warehouse directory.

          We should make the umask used by Warehouse.mkdirs() configurable, and set
          it to use a default value of 002.
          When the Hive Metastore creates a subdirectory in the Hive warehouse for
          a new table it does so with the default HDFS permissions derived from dfs.umask or dfs.umaskmode. There should be a option to inherit the permissions of the parent directory (default warehouse or custom database directory) so that the table directories have the same permissions as the database directories.
          Rohini Palaniswamy made changes -
          Attachment HIVE-2936-2.patch [ 12522517 ]
          Ashutosh Chauhan made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ashutosh Chauhan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Rohini Palaniswamy
              Reporter:
              Rohini Palaniswamy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development