diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java index 1546735..7b676ee 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestTokenAuthentication.java @@ -84,6 +84,12 @@ import org.junit.experimental.categories.Category; */ @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 {}