hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077552 - /hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java
Date Fri, 04 Mar 2011 04:28:23 GMT
Author: omalley
Date: Fri Mar  4 04:28:23 2011
New Revision: 1077552

URL: http://svn.apache.org/viewvc?rev=1077552&view=rev
Log:
commit 0a23cf082a22c5ccd97d4c91959f4211ef15d710
Author: Boris Shkolnik <borya@yahoo-inc.com>
Date:   Fri Jul 16 10:44:49 2010 -0700

    HDFS:1301 from https://issues.apache.org/jira/secure/attachment/12449573/HDFS-1301-BP20.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HDFS-1301. TestHDFSProxy need to use server side conf for ProxyUser
    +    stuff.(boryas)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java?rev=1077552&r1=1077551&r2=1077552&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestHdfsProxy.java
Fri Mar  4 04:28:23 2011
@@ -40,6 +40,7 @@ import org.apache.hadoop.hdfs.MiniDFSClu
 import org.apache.hadoop.hdfs.server.datanode.DataNode;
 import org.apache.hadoop.hdfs.server.namenode.FSNamesystem;
 import org.apache.hadoop.net.NetUtils;
+import org.apache.hadoop.security.authorize.ProxyUsers;
 
 /**
  * A JUnit test for HdfsProxy
@@ -210,6 +211,10 @@ public class TestHdfsProxy extends TestC
       dfsConf.set("hadoop.proxyuser." + System.getProperty("user.name") +
           ".hosts", "127.0.0.1,localhost");
       dfsConf.set("hadoop.security.authentication", "simple");
+      
+      //make sure server will look at the right config
+      ProxyUsers.refreshSuperUserGroupsConfiguration(dfsConf);
+      
       cluster = new MiniDFSCluster(dfsConf, 2, true, null);
       cluster.waitActive();
 



Mime
View raw message