[ 
https://issues.apache.org/jira/browse/HDFS-3444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron T. Myers updated HDFS-3444:
---------------------------------

    Attachment: HDFS-3444.patch

Here's a patch which addresses the issue. The problem was: a) there was no 
KerberosInfo annotation on the GetGroupsProtocolPB interface and b) the hdfs 
get groups commands was not subbing in the NN server principal for the generic 
GetGroups interface.

No tests are included since security is required to exercise this bug. I tested 
it manually on a cluster with security enabled and confirmed that it works as 
expected.
                
> hdfs groups command doesn't work with security enabled
> ------------------------------------------------------
>
>                 Key: HDFS-3444
>                 URL: https://issues.apache.org/jira/browse/HDFS-3444
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HDFS-3444.patch
>
>
> When one tries to run `hdfs groups' with security enabled, you'll get an 
> error like the following:
> {noformat}
> java.io.IOException: Failed to specify server's Kerberos principal name;
> {noformat}

--
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