You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by rm...@apache.org on 2014/11/08 06:15:11 UTC

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]

Repository: incubator-argus
Updated Branches:
  refs/heads/master 9ad99f60d -> 9d584eb58


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

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

Branch: refs/heads/master
Commit: 9d584eb580165267163c48081c7be2ccb96328a3
Parents: 9ad99f6
Author: rmani <rm...@hortonworks.com>
Authored: Fri Nov 7 21:13:32 2014 -0800
Committer: rmani <rm...@hortonworks.com>
Committed: Fri Nov 7 21:13:32 2014 -0800

----------------------------------------------------------------------
 .../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/9d584eb5/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 {