ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject incubator-argus git commit: Argus-169:Ranger Admin Hadoop repository test connection and lookup failed in secure mode with error : SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]
Date Sat, 08 Nov 2014 05:32:45 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/ranger-0.4 88e76c865 -> eeb7a89c2


Argus-169:Ranger Admin Hadoop repository test connection and lookup failed in secure mode
with error : SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]

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/eeb7a89c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/eeb7a89c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/eeb7a89c

Branch: refs/heads/ranger-0.4
Commit: eeb7a89c284dbe8153f4dabbfdd74fe8a466a381
Parents: 88e76c8
Author: rmani <rmani@hortonworks.com>
Authored: Fri Nov 7 21:13:32 2014 -0800
Committer: sneethiraj <sneethir@apache.org>
Committed: Sat Nov 8 00:32:35 2014 -0500

----------------------------------------------------------------------
 .../src/main/java/com/xasecure/hadoop/client/HadoopFS.java        | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/eeb7a89c/lookup-client/src/main/java/com/xasecure/hadoop/client/HadoopFS.java
----------------------------------------------------------------------
diff --git a/lookup-client/src/main/java/com/xasecure/hadoop/client/HadoopFS.java b/lookup-client/src/main/java/com/xasecure/hadoop/client/HadoopFS.java
index 69c5578..57de18a 100644
--- a/lookup-client/src/main/java/com/xasecure/hadoop/client/HadoopFS.java
+++ b/lookup-client/src/main/java/com/xasecure/hadoop/client/HadoopFS.java
@@ -26,6 +26,7 @@ import java.security.PrivilegedAction;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+
 import javax.security.auth.Subject;
 
 import org.apache.commons.io.FilenameUtils;
@@ -35,6 +36,7 @@ import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileStatus;
 import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.security.UserGroupInformation;
 
 import com.xasecure.hadoop.client.config.BaseClient;
 import com.xasecure.hadoop.client.exceptions.HadoopException;
@@ -66,6 +68,7 @@ public class HadoopFS extends BaseClient {
 			}
 			
 			Configuration conf = new Configuration() ;
+			UserGroupInformation.setConfiguration(conf);
 			
 			FileSystem fs = null ;
 			try {


Mime
View raw message