hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3016) Security in unit tests
Date Fri, 30 Mar 2012 20:43:26 GMT

    [ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242722#comment-13242722

Todd Lipcon commented on HDFS-3016:

Hi Jaimin, Jitendra. I tried to run this test case, but it doesn't seem to work here:

todd@todd-w510:~/git/hadoop-common/hadoop-hdfs-project/hadoop-hdfs$ mvn test -PstartKdc -DstartKdc=true
Tests in error: 
  testName(org.apache.hadoop.hdfs.server.namenode.TestSecureNameNode): Failed on local exception:
java.io.IOException: Couldn't setup connection for nn1/localhost@EXAMPLE.COM to nn1/localhost@EXAMPLE.COM;
Host Details : local host is: "todd-w510/"; destination host is: ""todd-w510":40329;

The test logs show:
2012-03-30 13:39:06,611 ERROR security.UserGroupInformation (UserGroupInformation.java:doAs(1208))
- PriviledgedActionException as:nn1/localhost@EXAMPLE.COM (auth:KERBEROS) cause:java.io.IOException:
Couldn't setup connection for nn1/localhost@EXAMPLE.COM to nn1/localhost@EXAMPLE.COM

Am I making a mistake in the invocation above? Looking at the actual users.ldif file, I don't
see how this can work on any machine which actually has a configured hostname other than localhost,
since the principals are inserted with "localhost" hostnames rather than something dynamically
generated based on the actual hostname.
> Security in unit tests 
> -----------------------
>                 Key: HDFS-3016
>                 URL: https://issues.apache.org/jira/browse/HDFS-3016
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Jaimin D Jetly
>            Assignee: Jaimin D Jetly
>         Attachments: HDFS-3016.patch
> This jira tracks HDFS changes corresponding to HADOOP-8078.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message