Repository: incubator-sentry
Updated Branches:
  refs/heads/master 19b9afa5f -> 4c2ce7938


SENTRY-301: Sentry plugin fails access service from secure Hive Metastore ( 
Prasad Mujumdar via Sravya Tirukkovalur)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/4c2ce793
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/4c2ce793
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/4c2ce793

Branch: refs/heads/master
Commit: 4c2ce79385866f086799deae82f4db5d9aab3099
Parents: 19b9afa
Author: Sravya Tirukkovalur <[email protected]>
Authored: Fri Jun 13 11:46:38 2014 -0700
Committer: Sravya Tirukkovalur <[email protected]>
Committed: Fri Jun 13 11:46:38 2014 -0700

----------------------------------------------------------------------
 .../provider/db/service/thrift/SentryPolicyServiceClient.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/4c2ce793/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
----------------------------------------------------------------------
diff --git 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
index 15a2e43..9e2c200 100644
--- 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
+++ 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
@@ -83,7 +83,7 @@ public class SentryPolicyServiceClient {
       super(mechanism, authorizationId, protocol, serverName, props, cbh,
           transport);
       if (wrapUgi) {
-        ugi = UserGroupInformation.getCurrentUser();
+        ugi = UserGroupInformation.getLoginUser();
       }
     }
 

Reply via email to