List of usage examples for org.apache.hadoop.fs FileSystem removeAcl
public void removeAcl(Path path) throws IOException
From source file:com.mellanox.r4h.DistributedFileSystem.java
License:Apache License
/** * {@inheritDoc}/*from w ww.ja v a 2s .com*/ */ @Override public void removeAcl(Path path) throws IOException { final Path absF = fixRelativePart(path); new FileSystemLinkResolver<Void>() { @Override public Void doCall(final Path p) throws IOException { dfs.removeAcl(getPathName(p)); return null; } @Override public Void next(final FileSystem fs, final Path p) throws IOException, UnresolvedLinkException { fs.removeAcl(p); return null; } }.resolve(this, absF); }
From source file:com.thinkbiganalytics.datalake.authorization.hdfs.HDFSUtil.java
License:Apache License
/** * @param fileSystem : HDFS FileSystem Object * @param path : HDFS Path//from w w w . ja v a2 s .c o m */ public void flushAcl(FileSystem fileSystem, Path path) throws IOException { try { fileSystem.removeAcl(path); } catch (IOException e) { log.error("Unable to flush HDFS Policy for " + path.toString() + " " + e.getMessage()); throw new IOException(e); } }