Package org.apache.drill.exec.coord.zk
Class ZKSecureACLProvider
java.lang.Object
org.apache.drill.exec.coord.zk.ZKSecureACLProvider
- All Implemented Interfaces:
ZKACLProvider
ZKSecureACLProvider restricts access to znodes created by Drill in a secure installation.
For all other znodes, only the creator of the znode, i.e the Drillbit user, has full access.
In addition to the above, all znodes under the cluster path are readable by anyone.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.zookeeper.data.ACL>
getDrillAclForPath
(String path) Returns the list of ZK ACLsACL
to apply for a specific Drill znodeList<org.apache.zookeeper.data.ACL>
Returns the list of ZK ACLsACL
to apply by default on Drill znodes
-
Constructor Details
-
ZKSecureACLProvider
-
-
Method Details
-
getDrillDefaultAcl
Description copied from interface:ZKACLProvider
Returns the list of ZK ACLsACL
to apply by default on Drill znodes- Specified by:
getDrillDefaultAcl
in interfaceZKACLProvider
- Returns:
- List of ZK ACLs
ACL
-
getDrillAclForPath
Description copied from interface:ZKACLProvider
Returns the list of ZK ACLsACL
to apply for a specific Drill znode- Specified by:
getDrillAclForPath
in interfaceZKACLProvider
- Parameters:
path
- The path for which the ACL is being looked up- Returns:
- List of ZK ACLs
ACL
for the provided path
-