Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # dev >> proper way to run TestSaslRPC


Copy link to this message
-
proper way to run TestSaslRPC
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 [EMAIL PROTECTED]
  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 [EMAIL PROTECTED]
  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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB