public interface HdfsAclProvider
Modifier and Type | Method and Description |
---|---|
Pair<AccessControlList,DefaultAccessControlList> |
getAcl(org.apache.hadoop.fs.FileSystem hdfs,
String path)
Returns the
AccessControlList from an hdfs path. |
void |
setAclEntries(org.apache.hadoop.fs.FileSystem hdfs,
String path,
List<AclEntry> aclEntries)
Sets the ACL and default ACL for an hdfs path using ACL entries.
|
@Nullable Pair<AccessControlList,DefaultAccessControlList> getAcl(org.apache.hadoop.fs.FileSystem hdfs, String path) throws IOException
AccessControlList
from an hdfs path.hdfs
- the HDFS clientpath
- the path to retrieve the ACL forAccessControlList
representation and
the DefaultAccessControlList
representation or null if ACL is
unsupported/disabledIOException
- if ACL is supported but cannot be retrievedvoid setAclEntries(org.apache.hadoop.fs.FileSystem hdfs, String path, List<AclEntry> aclEntries) throws IOException
hdfs
- the HDFS clientpath
- the path to set the ACL entries foraclEntries
- list of AclEntries, could be a representation of AccessControlList
or DefaultAccessControlList
IOException
- if ACL can not be setCopyright © 2023. All Rights Reserved.