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

Pete Wyckoff commented on HADOOP-4727:
--------------------------------------

forgot to mention - i think you also need to special case this supergroup 
entity of hdfs in fuse_dfs.c

{code}
  if (info->mGroup != NULL) {                                                   
                                                                                
                                             
    //                                                                          
                                                                                
                                             
    // Critical section - protect from concurrent calls in different threads 
since                                                                           
                                                
    // the struct below is static.                                              
                                                                                
                                             
    // (no returns until end)                                                   
                                                                                
                                             
    //                                                                          
                                                                                
                                             
                                                                                
                                                                                
                                             
    pthread_mutex_lock(&groupstruct_mutex);                                     
                                                                                
                                             
                                                                                
                                                                                
                                             
    struct group *grp = getgrnam(info->mGroup);                                 
                                                                                
                                             
    group_id = grp == NULL ? default_id : grp->gr_gid;                          
                                                                                
                                             
                                                                                
                                                                                
                                             
    if (grp == NULL && strcmp(info->mGroup, "supergroup") == 0) {               
                                                                                
                                   
      group_id = 0; // i.e., root                                               
                                                                                
                                             
    }                                                                           
                                                                                
                                             
                                                                                
                                                                                
                                             
    //                                                                          
                                                                                
                                             
    // End critical section                                                     
                                                                                
                                             
    //                                                                          
                                                                                
                                             
    pthread_mutex_unlock(&groupstruct_mutex);                                   
                                                                                
                                             
                                                                                
                                                                                
                                             
  }                  
{code}

> Groups do not work for fuse-dfs out of the box on 0.19.0
> --------------------------------------------------------
>
>                 Key: HADOOP-4727
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4727
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/fuse-dfs
>    Affects Versions: 0.19.0
>            Reporter: Brian Bockelman
>            Priority: Blocker
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hadoop-4727.patch
>
>
> The groups functionality of fuse-dfs did not work for me in Hadoop 0.19.0.  
> Everything shows up as group nobody.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to