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

table creation should fail when user does not have permissions on db

    XMLWordPrintableJSON

Details

    • One cannot create table (whether or not they provide a LOCATION) if they do not have WRITE permission on the database directory.

    Description

      Its possible to create a table under a database where the user does not have write permission. It can be done by specifying a LOCATION where the user has write access (say /tmp/foo). This should be restricted.

      HdfsAuthorizationProvider (which typically runs on client) checks the database directory during table creation. But StorageBasedAuthorizationProvider does not.

      Attachments

        1. HIVE-6093.1.patch
          4 kB
          Thejas Nair
        2. HIVE-6093.1.patch
          4 kB
          Thejas Nair
        3. HIVE-6093.patch
          2 kB
          Thiruvel Thirumoolan
        4. HIVE-6093-1.patch
          4 kB
          Thiruvel Thirumoolan

        Activity

          People

            thiruvel Thiruvel Thirumoolan
            thiruvel Thiruvel Thirumoolan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: