Example usage for org.apache.hadoop.fs FileSystem removeDefaultAcl

List of usage examples for org.apache.hadoop.fs FileSystem removeDefaultAcl

Introduction

In this page you can find the example usage for org.apache.hadoop.fs FileSystem removeDefaultAcl.

Prototype

public void removeDefaultAcl(Path path) throws IOException 

Source Link

Document

Removes all default ACL entries from files and directories.

Usage

From source file:com.mellanox.r4h.DistributedFileSystem.java

License:Apache License

/**
 * {@inheritDoc}//w  w w .  j  a v  a  2 s  .  c  om
 */
@Override
public void removeDefaultAcl(Path path) throws IOException {
    final Path absF = fixRelativePart(path);
    new FileSystemLinkResolver<Void>() {
        @Override
        public Void doCall(final Path p) throws IOException {
            dfs.removeDefaultAcl(getPathName(p));
            return null;
        }

        @Override
        public Void next(final FileSystem fs, final Path p) throws IOException, UnresolvedLinkException {
            fs.removeDefaultAcl(p);
            return null;
        }
    }.resolve(this, absF);
}