@Override public void setGroup(String group) throws IOException { fc.setOwner(path, null, group); }
@Override public void setGroup(String group) throws IOException { fc.setOwner(path, null, group); }
@Override public void setOwner(final Path f, final String username, final String groupname) throws AccessControlException, UnsupportedFileSystemException, FileNotFoundException, IOException { fc.setOwner(f, username, groupname); }
@Override public void setOwner(final Path f, final String username, final String groupname) throws AccessControlException, UnsupportedFileSystemException, FileNotFoundException, IOException { fc.setOwner(f, username, groupname); }
@Override protected void createDir(Path dirPath, FsPermission perms, boolean createParent, String owner) throws IOException { // WSCE requires dirs to be 750, not 710 as DCE. // This is similar to how LCE creates dirs // perms = new FsPermission(DIR_PERM); if (LOG.isDebugEnabled()) { LOG.debug(String.format("createDir: %s perm:%s owner:%s", dirPath.toString(), perms.toString(), owner)); } super.createDir(dirPath, perms, createParent, owner); lfs.setOwner(dirPath, owner, nodeManagerGroup); }
@Override protected void createDir(Path dirPath, FsPermission perms, boolean createParent, String owner) throws IOException { // WSCE requires dirs to be 750, not 710 as DCE. // This is similar to how LCE creates dirs // perms = new FsPermission(DIR_PERM); if (LOG.isDebugEnabled()) { LOG.debug(String.format("createDir: %s perm:%s owner:%s", dirPath.toString(), perms.toString(), owner)); } super.createDir(dirPath, perms, createParent, owner); lfs.setOwner(dirPath, owner, nodeManagerGroup); }
@Override protected void createDir(Path dirPath, FsPermission perms, boolean createParent, String owner) throws IOException { // WSCE requires dirs to be 750, not 710 as DCE. // This is similar to how LCE creates dirs // perms = new FsPermission(DIR_PERM); if (LOG.isDebugEnabled()) { LOG.debug(String.format("createDir: %s perm:%s owner:%s", dirPath.toString(), perms.toString(), owner)); } super.createDir(dirPath, perms, createParent, owner); lfs.setOwner(dirPath, owner, nodeManagerGroup); }
@Override protected void createDir(Path dirPath, FsPermission perms, boolean createParent, String owner) throws IOException { // WSCE requires dirs to be 750, not 710 as DCE. // This is similar to how LCE creates dirs // perms = new FsPermission(DIR_PERM); if (LOG.isDebugEnabled()) { LOG.debug(String.format("createDir: %s perm:%s owner:%s", dirPath.toString(), perms.toString(), owner)); } super.createDir(dirPath, perms, createParent, owner); lfs.setOwner(dirPath, owner, nodeManagerGroup); }
@Test(expected=AccessControlException.class) public void testInternalSetOwner() throws IOException { fcView.setOwner(new Path("/internalDir"), "foo", "bar"); }
@Test(expected=AccessControlException.class) public void testInternalSetOwner() throws IOException { fcView.setOwner(new Path("/internalDir"), "foo", "bar"); }