hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject proper way to run TestSaslRPC
Date Wed, 21 Dec 2011 00:00:37 GMT
Hi,
In 0.20.205, I used this command:
ant test-core

I saw:

Testcase: testDigestAuthMethodHostBasedToken took 0.026 sec
  Caused an ERROR
failure to login
java.io.IOException: failure to login
  at
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:452)
  at
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:414)
  at
org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethod(TestSaslRPC.java:366)
  at
org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethodHostBasedToken(TestSaslRPC.java:414)
Caused by: javax.security.auth.login.LoginException:
java.lang.IllegalArgumentException: Illegal principal name zhihyu@x.com
  at org.apache.hadoop.security.User.<init>(User.java:46)
  at org.apache.hadoop.security.User.<init>(User.java:39)
  at
org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule.commit(UserGroupInformation.java:123)
  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  at java.security.AccessController.doPrivileged(Native Method)
  at
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  at javax.security.auth.login.LoginContext.login(LoginContext.java:576)
  at
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:433)
  at
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:414)
  at
org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethod(TestSaslRPC.java:366)
  at
org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethodHostBasedToken(TestSaslRPC.java:414)
Caused by: org.apache.hadoop.security.KerberosName$NoMatchingRule: No rules
applied to zhihyu@x.com
  at
org.apache.hadoop.security.KerberosName.getShortName(KerberosName.java:394)
  at org.apache.hadoop.security.User.<init>(User.java:44)

  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  at java.security.AccessController.doPrivileged(Native Method)
  at
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  at javax.security.auth.login.LoginContext.login(LoginContext.java:576)
  at
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:433)

What would be the proper way of running TestSaslRPC ?

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message