You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jaimin D Jetly (Created) (JIRA)" <ji...@apache.org> on 2012/02/27 20:02:46 UTC
[jira] [Created] (HDFS-3016) Security in unit tests
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
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
[jira] [Updated] (HDFS-3016) Security in unit tests
Posted by "Jitendra Nath Pandey (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jitendra Nath Pandey updated HDFS-3016:
---------------------------------------
Hadoop Flags: Reviewed
Status: Patch Available (was: Open)
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218460#comment-13218460 ]
Hudson commented on HDFS-3016:
------------------------------
Integrated in Hadoop-Common-trunk-Commit #1797 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1797/])
HDFS-3016. Security in unit tests. Contributed by Jaimin Jetly. (Revision 1294773)
Result = SUCCESS
jitendra : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1294773
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/pom.xml
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSecureNameNode.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/krb5.conf
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Jitendra Nath Pandey (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218448#comment-13218448 ]
Jitendra Nath Pandey commented on HDFS-3016:
--------------------------------------------
+1.
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218463#comment-13218463 ]
Hudson commented on HDFS-3016:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #1871 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1871/])
HDFS-3016. Security in unit tests. Contributed by Jaimin Jetly. (Revision 1294773)
Result = SUCCESS
jitendra : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1294773
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/pom.xml
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSecureNameNode.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/krb5.conf
> 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
[jira] [Updated] (HDFS-3016) Security in unit tests
Posted by "Jaimin D Jetly (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jaimin D Jetly updated HDFS-3016:
---------------------------------
Attachment: HDFS-3016.patch
This is the first patch and uses resources and binary keytabs of HDFS-8078 patch.
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219143#comment-13219143 ]
Hudson commented on HDFS-3016:
------------------------------
Integrated in Hadoop-Hdfs-trunk #970 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/970/])
HDFS-3016. Security in unit tests. Contributed by Jaimin Jetly. (Revision 1294773)
Result = SUCCESS
jitendra : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1294773
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/pom.xml
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSecureNameNode.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/krb5.conf
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Todd Lipcon (Commented) (JIRA)" <ji...@apache.org>.
[ 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/localhost@EXAMPLE.COM to nn1/localhost@EXAMPLE.COM; 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/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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219210#comment-13219210 ]
Hudson commented on HDFS-3016:
------------------------------
Integrated in Hadoop-Mapreduce-trunk #1005 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1005/])
HDFS-3016. Security in unit tests. Contributed by Jaimin Jetly. (Revision 1294773)
Result = SUCCESS
jitendra : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1294773
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/pom.xml
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSecureNameNode.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/krb5.conf
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218559#comment-13218559 ]
Hudson commented on HDFS-3016:
------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #1806 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1806/])
HDFS-3016. Security in unit tests. Contributed by Jaimin Jetly. (Revision 1294773)
Result = ABORTED
jitendra : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1294773
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/pom.xml
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestSecureNameNode.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/krb5.conf
> 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
[jira] [Commented] (HDFS-3016) Security in unit tests
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217984#comment-13217984 ]
Hadoop QA commented on HDFS-3016:
---------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12516259/HDFS-3016.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 14 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in .
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/1917//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1917//console
This message is automatically generated.
> 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
[jira] [Updated] (HDFS-3016) Security in unit tests
Posted by "Jitendra Nath Pandey (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jitendra Nath Pandey updated HDFS-3016:
---------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I have committed this. Thanks to Jaimin Jetly.
> 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