Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2359

Object owner is unable to grant privileges: SentryAccessDeniedException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Sentry
    • None

    Description

      Steps to Reproduce:

      Pre-req: 

      Sentry configuration :  OO enable with GRANT.

      Test user - WITH CREATE privileges on SERVER:

      1. Test user - CREATE DATABASE db1;
      2.  Admin user - CREATE ROLE new_role;
      3. Test user - GRANT ALL ON DATABASE db1 TO ROLE new_role;

       

      Actual Result : SentryAccessDeniedException:  is returned.

      Sample Exception :

      ERROR : Error processing Sentry command: usr_wmnxacyvujehjqyzqxud has no grant!.Please grant admin privilege to usr_wmnxacyvujehjqyzqxud.
      ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask. SentryAccessDeniedException: usr_wmnxacyvujehjqyzqxud has no grant!
      INFO : Completed executing command(queryId=hive_20180817123333_9157c8f7-8226-4c45-bd6f-257bb17e3861); Time taken: 0.025 seconds
      0: jdbc:hive2://mk516-6.gce.cloudera.com:1000> Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask. SentryAccessDeniedException: usr_wmnxacyvujehjqyzqxud has no grant! (state=08S01,code=1)

      Expected Result :  Should be able to grant .

      Attachments

        1. SENTRY-2359.004.patch
          7 kB
          Krishna Kalyan
        2. SENTRY-2359.003.patch
          9 kB
          Krishna Kalyan
        3. SENTRY-2359.002.patch
          8 kB
          Krishna Kalyan
        4. SENTRY-2359.001.patch
          7 kB
          Krishna Kalyan

        Issue Links

          Activity

            People

              kkalyan Krishna Kalyan
              kkalyan Krishna Kalyan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: