You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by sr...@apache.org on 2014/06/13 20:47:21 UTC
git commit: SENTRY-301: Sentry plugin fails access service from
secure Hive Metastore ( Prasad Mujumdar via Sravya Tirukkovalur)
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 <sr...@clouera.com>
Authored: Fri Jun 13 11:46:38 2014 -0700
Committer: Sravya Tirukkovalur <sr...@clouera.com>
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();
}
}