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

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

Hi Brian,

I think you can unit test this by adding the following to the testWrites method 
in src/test/TestFuseDFS.java

{code}
      Runtime r = Runtime.getRuntime();
      String cmd = "stat -c %G " + mpoint + "/hello.txt";
      Process p = r.exec(cmd);
      p.waitFor();
      InputStream i = p.getInputStream();
      byte buf[] = new byte[i.available()];
      length = i.read(buf);

      String res = new String(buf,0, length-1);
      
      if(res.equals("root")) {
        assertEquals(foo.getGroup(), "supergroup");
      } else {
        assertEquals(foo.getGroup(), res);
      }

{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