public class NoopHdfsAclProvider extends Object implements HdfsAclProvider
Constructor and Description |
---|
NoopHdfsAclProvider() |
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.
|
public Pair<AccessControlList,DefaultAccessControlList> getAcl(org.apache.hadoop.fs.FileSystem hdfs, String path) throws IOException
HdfsAclProvider
AccessControlList
from an hdfs path.getAcl
in interface HdfsAclProvider
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 retrievedpublic void setAclEntries(org.apache.hadoop.fs.FileSystem hdfs, String path, List<AclEntry> aclEntries) throws IOException
HdfsAclProvider
setAclEntries
in interface HdfsAclProvider
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.