You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2016/04/26 11:40:29 UTC

incubator-ranger git commit: Fixing build following Hive SessionState change

Repository: incubator-ranger
Updated Branches:
  refs/heads/master 4e37e5751 -> 95c8f693d


Fixing build following Hive SessionState change


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/95c8f693
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/95c8f693
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/95c8f693

Branch: refs/heads/master
Commit: 95c8f693d40f9980b563463231543d1763b69b0c
Parents: 4e37e57
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Tue Apr 26 10:40:13 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Tue Apr 26 10:40:13 2016 +0100

----------------------------------------------------------------------
 .../ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/95c8f693/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
index 3cd9e53..b1f312e 100644
--- a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
+++ b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
@@ -1051,7 +1051,7 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase {
 		if(ss != null) {
 			ret.setClientIPAddress(ss.getUserIpAddress());
 			ret.setSessionId(ss.getSessionId());
-			ret.setRequestData(ss.getCmd());
+			ret.setRequestData(ss.getConf().getQueryString());
 		}
 
 		HiveAuthzSessionContext sessionContext = getHiveAuthzSessionContext();