HBASE-8842 TestTokenAuthentication failing on hadoop2 build with "IllegalArgumentException: Can t get Kerberos realm"

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1499054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-07-02 18:44:49 +00:00
parent 85ed20874e
commit 4a5fecce88
1 changed files with 6 additions and 0 deletions

View File

@ -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 {}