ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-127:Fixed HBase resource lookup failure to return table and column family
Date Wed, 22 Oct 2014 06:18:33 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 1fd51cdf0 -> a8f75bd61


ARGUS-127:Fixed HBase resource lookup failure to return table and column family

Signed-off-by: sneethiraj <sneethir@apache.org>


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

Branch: refs/heads/master
Commit: a8f75bd61637a543d13cd7f7ad28031b59b83acb
Parents: 1fd51cd
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Wed Oct 22 02:09:46 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Wed Oct 22 02:18:04 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/com/xasecure/hbase/client/HBaseClient.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/a8f75bd6/lookup-client/src/main/java/com/xasecure/hbase/client/HBaseClient.java
----------------------------------------------------------------------
diff --git a/lookup-client/src/main/java/com/xasecure/hbase/client/HBaseClient.java b/lookup-client/src/main/java/com/xasecure/hbase/client/HBaseClient.java
index 5ae4e80..c1d18d7 100644
--- a/lookup-client/src/main/java/com/xasecure/hbase/client/HBaseClient.java
+++ b/lookup-client/src/main/java/com/xasecure/hbase/client/HBaseClient.java
@@ -212,6 +212,8 @@ public class HBaseClient extends BaseClient {
 				+ "policies, but you would not be able to use autocomplete for "
 				+ "resource names. Check xa_portal.log for more info.";
 		
+		subj = getLoginSubject();
+		
 		if (subj != null) {
 			ClassLoader prevCl = Thread.currentThread().getContextClassLoader() ;
 			try {
@@ -295,6 +297,8 @@ public class HBaseClient extends BaseClient {
 		final String errMsg = " You can still save the repository and start creating "
 				+ "policies, but you would not be able to use autocomplete for "
 				+ "resource names. Check xa_portal.log for more info.";
+		
+		subj = getLoginSubject();
 		if (subj != null) {
 			ClassLoader prevCl = Thread.currentThread().getContextClassLoader() ;
 			try {
@@ -384,7 +388,7 @@ public class HBaseClient extends BaseClient {
 					
 				}) ;
 			} catch (SecurityException se) {
-				String msgDesc = "getTableList: Unable to connect to HBase Server instance, "
+				String msgDesc = "getColumnFamilyList: Unable to connect to HBase Server instance, "
 						+ "current thread might not be able set the context ClassLoader.";
 				HadoopException hdpException = new HadoopException(msgDesc, se);
 				hdpException.generateResponseDataMap(false, getMessage(se),


Mime
View raw message