Github user chtyim commented on a diff in the pull request:

    https://github.com/apache/twill/pull/26#discussion_r98118427
  
    --- Diff: 
twill-yarn/src/test/java/org/apache/twill/filesystem/FileContextLocationTest.java
 ---
    @@ -17,26 +17,36 @@
      */
     package org.apache.twill.filesystem;
     
    +import com.google.common.base.Throwables;
     import org.apache.hadoop.conf.Configuration;
    +import org.apache.hadoop.fs.Path;
    +import org.apache.hadoop.fs.permission.FsPermission;
     import org.apache.hadoop.hdfs.MiniDFSCluster;
    +import org.apache.hadoop.security.UserGroupInformation;
     import org.junit.AfterClass;
     import org.junit.BeforeClass;
     
     import java.io.IOException;
    +import java.security.PrivilegedAction;
     
     /**
      *
      */
     public class FileContextLocationTest extends LocationTestBase {
     
       public static MiniDFSCluster dfsCluster;
    +  private static UserGroupInformation testUGI;
     
       @BeforeClass
       public static void init() throws IOException {
         Configuration conf = new Configuration();
    -    conf.setBoolean("hdfs.permissions", true);
         conf.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR, 
tmpFolder.newFolder().getAbsolutePath());
         dfsCluster = new MiniDFSCluster.Builder(conf).numDataNodes(1).build();
    +    // make rooot world-writable so that we can create all location 
factories as unprivileged user
    --- End diff --
    
    root


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to