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

Create external table failed when enabled StorageBasedAuthorization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.2.1
    • None
    • None
    • None

    Description

      Please look at the stacktrace, when enabled StorageBasedAuthorization, creating external table will failed with write permission about the default warehouse path "/user/hive/warehouse":

      > CREATE EXTERNAL TABLE test(id int) LOCATION '/tmp/wangmeng/test' ;
      Error: Error while compiling statement: FAILED: HiveException java.security.AccessControlException: Permission denied: user=wangmeng, access=WRITE, inode="/user/hive/warehouse":hive:hive:drwxr-x--t.

      Attachments

        1. HIVE-12232.01.patch
          3 kB
          WangMeng

        Issue Links

          Activity

            People

              sjtufighter WangMeng
              sjtufighter WangMeng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: