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:
parent
85ed20874e
commit
4a5fecce88
|
@ -84,6 +84,12 @@ import org.junit.experimental.categories.Category;
|
||||||
*/
|
*/
|
||||||
@Category(MediumTests.class)
|
@Category(MediumTests.class)
|
||||||
public class TestTokenAuthentication {
|
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);
|
private static Log LOG = LogFactory.getLog(TestTokenAuthentication.class);
|
||||||
|
|
||||||
public static interface AuthenticationServiceSecurityInfo {}
|
public static interface AuthenticationServiceSecurityInfo {}
|
||||||
|
|
Loading…
Reference in New Issue