hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1499054 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java
Date Tue, 02 Jul 2013 18:44:49 GMT
Author: stack
Date: Tue Jul  2 18:44:49 2013
New Revision: 1499054

URL: http://svn.apache.org/r1499054
Log:
HBASE-8842 TestTokenAuthentication failing on hadoop2 build with "IllegalArgumentException:
Can t get Kerberos realm"

Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java?rev=1499054&r1=1499053&r2=1499054&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java
Tue Jul  2 18:44:49 2013
@@ -84,6 +84,12 @@ import org.junit.experimental.categories
  */
 @Category(MediumTests.class)
 public class TestTokenAuthentication {
+  static {
+    // Setting whatever system properties after recommendation from
+    // http://docs.oracle.com/javase/6/docs/technotes/guides/security/jgss/tutorials/KerberosReq.html
+    System.setProperty("java.security.krb5.realm", "hbase");
+    System.setProperty("java.security.krb5.kdc", "blah");
+  }
   private static Log LOG = LogFactory.getLog(TestTokenAuthentication.class);
 
   public static interface AuthenticationServiceSecurityInfo {}



Mime
View raw message