|
@@ -41,6 +41,8 @@ public class TestHftpDelegationToken {
|
|
|
|
|
|
@Test
|
|
|
public void testHdfsDelegationToken() throws Exception {
|
|
|
+ SecurityUtilTestHelper.setTokenServiceUseIp(true);
|
|
|
+
|
|
|
final Configuration conf = new Configuration();
|
|
|
conf.set(HADOOP_SECURITY_AUTHENTICATION, "kerberos");
|
|
|
UserGroupInformation.setConfiguration(conf);
|
|
@@ -265,4 +267,4 @@ public class TestHftpDelegationToken {
|
|
|
@Override
|
|
|
protected void initDelegationToken() throws IOException {}
|
|
|
}
|
|
|
-}
|
|
|
+}
|