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

StorageBasedAuthorizationProvider fails to allow non-admin users to create databases in writable directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 0.13.0
    • None
    • None
    • None

    Description

      When attempting to create a database with a custom location and using
      hive.security.authorizationmanager=org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider, an AccessControlException is generated for the default warehouse location, not the location which was given in the create database command.

      hive> create database test LOCATION '/user/ccondit/test';                                         
      Authorization failed:java.security.AccessControlException: action WRITE not permitted on path hdfs://example.com:8020/apps/hive/warehouse for user ccondit. Use SHOW GRANT to get more details.
      14/05/19 09:50:59 ERROR ql.Driver: Authorization failed:java.security.AccessControlException: action WRITE not permitted on path hdfs://example.com:8020/apps/hive/warehouse for user ccondit. Use SHOW GRANT to get more details.
      

      Attachments

        1. HIVE-7089.patch
          0.7 kB
          Craig Condit

        Activity

          People

            osayankin Oleksiy Sayankin
            ccondit Craig Condit
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: