You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Arpit Gupta (JIRA)" <ji...@apache.org> on 2012/10/04 18:05:47 UTC
[jira] [Created] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Arpit Gupta created HADOOP-8882:
-----------------------------------
Summary: uppercase namenode host name causes fsck to fail when useKsslAuth is on
Key: HADOOP-8882
URL: https://issues.apache.org/jira/browse/HADOOP-8882
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 1.2.0
Reporter: Arpit Gupta
Assignee: Arpit Gupta
{code}
public static void fetchServiceTicket(URL remoteHost) throws IOException {
if(!UserGroupInformation.isSecurityEnabled())
return;
String serviceName = "host/" + remoteHost.getHost();
{code}
the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469481#comment-13469481 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
in trunk fsck uses spengo and will be fixed by HADOOP-8878
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Foley updated HADOOP-8882:
-------------------------------
Fix Version/s: (was: 1.2.0)
1.1.1
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Fix For: 1.1.1
>
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477628#comment-13477628 ]
Suresh Srinivas commented on HADOOP-8882:
-----------------------------------------
+1 for the branch-1 change.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Gupta updated HADOOP-8882:
--------------------------------
Attachment: HADOOP-8882.branch-1.patch
updated the patch to use the method in kerberosUtil.getServicePrincipal.
That method uses LOCALE.US in toLowerCase
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Gupta updated HADOOP-8882:
--------------------------------
Affects Version/s: 1.0.3
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470621#comment-13470621 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
i meant without locale info in the above comment.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501492#comment-13501492 ]
Matt Foley commented on HADOOP-8882:
------------------------------------
included in branch-1.1
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Fix For: 1.1.1
>
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Gupta updated HADOOP-8882:
--------------------------------
Attachment: HADOOP-8882.branch-1.patch
branch-1 patch: removed unused import and converted hostname to lower case.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474259#comment-13474259 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
here is the test patch output
{code}
[exec]
[exec] -1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] -1 tests included. The patch doesn't appear to include any new or modified tests.
[exec] Please justify why no tests are needed for this patch.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] -1 findbugs. The patch appears to introduce 9 new Findbugs (version 1.3.9) warnings.
[exec]
[exec]
[exec]
[exec]
[exec] ======================================================================
[exec] ======================================================================
[exec] Finished build.
[exec] ======================================================================
[exec] ======================================================================
{code}
Findbugs warnings are not related to this patch.
No tests added as TestSecurityUtil as appropriate coverage.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469479#comment-13469479 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
in branch-1.0 fsck uses fetchServiceTicket and there is no useKsslAuth option.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arpit Gupta updated HADOOP-8882:
--------------------------------
Affects Version/s: 1.1.0
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469505#comment-13469505 ]
Steve Loughran commented on HADOOP-8882:
----------------------------------------
Arpit -you should really use {{toLowerCase(Locale.EN_US)}}, otherwise the case conversion will fail in places where upper/lower case rules are different (example: turkey)
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470619#comment-13470619 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
@Steve
Thanks for the heads up. I followed the same approach that HADOOP-7988 followed to convert the service principal hostnames to lower case with locale.
My be should open up a different jira to make them all handle locale. Let me know what you think.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HADOOP-8882) uppercase namenode host name causes
fsck to fail when useKsslAuth is on
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas resolved HADOOP-8882.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Hadoop Flags: Reviewed
I committed the patch to branch-1. Thank you Aprit.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Fix For: 1.2.0
>
> Attachments: HADOOP-8882.branch-1.patch, HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-8882) uppercase namenode host name
causes fsck to fail when useKsslAuth is on
Posted by "Arpit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-8882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472597#comment-13472597 ]
Arpit Gupta commented on HADOOP-8882:
-------------------------------------
once HADOOP-8878 gets committed i will change this patch to use the method in KerberosUtil so we are going through the same code path.
> uppercase namenode host name causes fsck to fail when useKsslAuth is on
> -----------------------------------------------------------------------
>
> Key: HADOOP-8882
> URL: https://issues.apache.org/jira/browse/HADOOP-8882
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.3, 1.1.0, 1.2.0
> Reporter: Arpit Gupta
> Assignee: Arpit Gupta
> Attachments: HADOOP-8882.branch-1.patch
>
>
> {code}
> public static void fetchServiceTicket(URL remoteHost) throws IOException {
> if(!UserGroupInformation.isSecurityEnabled())
> return;
>
> String serviceName = "host/" + remoteHost.getHost();
> {code}
> the hostname should be converted to lower case. Saw this in branch 1, will look at trunk and update the bug accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira