Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-255

Revoke on Server privilege fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      $ revoke ALL on server server1 from role sysadmin;
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask. Invalid input privilege object. Server Stacktrace: org.apache.sentry.provider.db.SentryInvalidInputException: DB name not set for DB scope
      	at org.apache.sentry.provider.db.service.persistent.SentryStore.constructPrivilegeName(SentryStore.java:420)
      	at org.apache.sentry.provider.db.service.persistent.SentryStore.alterSentryRoleRevokePrivilege(SentryStore.java:315)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.alter_sentry_role_revoke_privilege(SentryPolicyStoreProcessor.java:203)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_revoke_privilege.getResult(SentryPolicyService.java:713)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_revoke_privilege.getResult(SentryPolicyService.java:698)
      	at sentry.org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at sentry.org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at sentry.org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
      	at sentry.org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745) (state=08S01,code=1)
      

        Attachments

        1. SENTRY-255.0.patch
          3 kB
          Sravya Tirukkovalur
        2. SENTRY-255.1.patch
          8 kB
          Sravya Tirukkovalur
        3. SENTRY-255.2.patch
          8 kB
          Sravya Tirukkovalur

          Activity

            People

            • Assignee:
              sravya Sravya Tirukkovalur
              Reporter:
              sravya Sravya Tirukkovalur
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: