Search in sources :

Example 6 with HadoopKerberosName

use of org.apache.hadoop.security.HadoopKerberosName in project hadoop by apache.

the class TestSecureLogins method testValidKerberosName.

@Test
public void testValidKerberosName() throws Throwable {
    new HadoopKerberosName(ZOOKEEPER).getShortName();
    new HadoopKerberosName(ZOOKEEPER_LOCALHOST).getShortName();
    new HadoopKerberosName(ZOOKEEPER_REALM).getShortName();
// standard rules don't pick this up
// new HadoopKerberosName(ZOOKEEPER_LOCALHOST_REALM).getShortName();
}
Also used : HadoopKerberosName(org.apache.hadoop.security.HadoopKerberosName) Test(org.junit.Test)

Aggregations

HadoopKerberosName (org.apache.hadoop.security.HadoopKerberosName)6 IOException (java.io.IOException)2 SaslException (javax.security.sasl.SaslException)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 DataInputStream (java.io.DataInputStream)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 UndeclaredThrowableException (java.lang.reflect.UndeclaredThrowableException)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 UnsupportedCallbackException (javax.security.auth.callback.UnsupportedCallbackException)1 LoginException (javax.security.auth.login.LoginException)1 SaslServer (javax.security.sasl.SaslServer)1 DrillProperties (org.apache.drill.common.config.DrillProperties)1 FileSystem (org.apache.hadoop.fs.FileSystem)1 Text (org.apache.hadoop.io.Text)1 AccessControlException (org.apache.hadoop.security.AccessControlException)1 UserGroupInformation (org.apache.hadoop.security.UserGroupInformation)1 ContainerLaunchContext (org.apache.hadoop.yarn.api.records.ContainerLaunchContext)1 LocalResource (org.apache.hadoop.yarn.api.records.LocalResource)1 Test (org.junit.Test)1