@ThreadSafe public class SupportedHdfsAclProvider extends java.lang.Object implements HdfsAclProvider
| Constructor and Description |
|---|
SupportedHdfsAclProvider() |
| Modifier and Type | Method and Description |
|---|---|
Pair<AccessControlList,DefaultAccessControlList> |
getAcl(org.apache.hadoop.fs.FileSystem hdfs,
java.lang.String path)
Returns the
AccessControlList from an hdfs path. |
void |
setAclEntries(org.apache.hadoop.fs.FileSystem hdfs,
java.lang.String path,
java.util.List<AclEntry> aclEntries)
Sets the ACL and default ACL for an hdfs path using ACL entries.
|
public Pair<AccessControlList,DefaultAccessControlList> getAcl(org.apache.hadoop.fs.FileSystem hdfs, java.lang.String path) throws java.io.IOException
HdfsAclProviderAccessControlList from an hdfs path.getAcl in interface HdfsAclProviderhdfs - the HDFS clientpath - the path to retrieve the ACL forAccessControlList representation and
the DefaultAccessControlList representation or null if ACL is
unsupported/disabledjava.io.IOException - if ACL is supported but cannot be retrievedpublic void setAclEntries(org.apache.hadoop.fs.FileSystem hdfs,
java.lang.String path,
java.util.List<AclEntry> aclEntries)
throws java.io.IOException
HdfsAclProvidersetAclEntries in interface HdfsAclProviderhdfs - the HDFS clientpath - the path to set the ACL entries foraclEntries - list of AclEntries, could be a representation of AccessControlList
or DefaultAccessControlListjava.io.IOException - if ACL can not be setCopyright © 2023. All Rights Reserved.