Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13346


Change subject: IMPALA-8476: Replace Sentry admin check workaround with proper 
Sentry API
......................................................................

IMPALA-8476: Replace Sentry admin check workaround with proper Sentry API

Impala uses a workaround to detect if a user is a Sentry admin by by asking
the Sentry API to list privileges associated with the user, since previously
Sentry did not provide an suitable API to peform this check. SENTRY-2440
provides a new API (https://issues.apache.org/jira/browse/SENTRY-2440), and
thus it would be good to update the Impala to make the code easier to
understand.

Testing:
1. Passed the tests in AuthorizationTest.java.
2. Passed the Sentry related tests in AuthorizationStmtTest.java.
2. Passed the tests in test_sentry.py.

Change-Id: I5a27140d401494bc372ad0da96ada57bda94cd82
---
M bin/impala-config.sh
M 
fe/src/main/java/org/apache/impala/authorization/sentry/SentryCatalogdAuthorizationManager.java
M 
fe/src/main/java/org/apache/impala/authorization/sentry/SentryPolicyService.java
M fe/src/main/java/org/apache/impala/authorization/sentry/SentryProxy.java
M fe/src/main/java/org/apache/impala/service/JniCatalog.java
5 files changed, 25 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/46/13346/1
--
To view, visit http://gerrit.cloudera.org:8080/13346
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a27140d401494bc372ad0da96ada57bda94cd82
Gerrit-Change-Number: 13346
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Fredy Wijaya <[email protected]>

Reply via email to