[ 
https://issues.apache.org/jira/browse/HADOOP-15167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322540#comment-16322540
 ] 

Ajay Kumar commented on HADOOP-15167:
-------------------------------------

[~brahmareddy], thanks for working on this. Client with no group should be 
allowed to retrieve fileStatus, however group field in FileStatus is not 
mandatory. Since in this scenario we don't get a group for client we can pass 
null for group. FileStatus constructor will handle it without complaining.
{code}this.owner = (owner == null) ? "" : owner;{code}


> [viewfs] ls will fail when user doesn't exist
> ---------------------------------------------
>
>                 Key: HADOOP-15167
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15167
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: viewfs
>    Affects Versions: 2.7.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-15167.patch
>
>
> Have Secure federated cluster with atleast two nameservices
> Configure viewfs related configs 
>  When we run the {{ls}} cmd in HDFS client ,we will call the method: 
> org.apache.hadoop.fs.viewfs.ViewFileSystem.InternalDirOfViewFs#getFileStatus
>  it will try to get the group of the kerberos user. If the node has not this 
> user, it fails. 
> Throws the following and exits.UserGroupInformation#getPrimaryGroupName
> {code}
> if (groups.isEmpty()) {
>       throw new IOException("There is no primary group for UGI " + this);
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to