[ 
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 -Dtest=TestSecureNameNode
...
Tests in error: 
  testName(org.apache.hadoop.hdfs.server.namenode.TestSecureNameNode): Failed 
on local exception: java.io.IOException: Couldn't setup connection for 
nn1/[email protected] to nn1/[email protected]; Host Details : local 
host is: "todd-w510/127.0.0.1"; 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/[email protected] (auth:KERBEROS) cause:java.io.IOException: 
Couldn't setup connection for nn1/[email protected] to 
nn1/[email protected]


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

        

Reply via email to