Class ZKSecureACLProvider

java.lang.Object
org.apache.drill.exec.coord.zk.ZKSecureACLProvider
All Implemented Interfaces:
ZKACLProvider

public class ZKSecureACLProvider extends Object implements 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 Details

  • Method Details

    • getDrillDefaultAcl

      public List<org.apache.zookeeper.data.ACL> getDrillDefaultAcl()
      Description copied from interface: ZKACLProvider
      Returns the list of ZK ACLs ACL to apply by default on Drill znodes
      Specified by:
      getDrillDefaultAcl in interface ZKACLProvider
      Returns:
      List of ZK ACLs ACL
    • getDrillAclForPath

      public List<org.apache.zookeeper.data.ACL> getDrillAclForPath(String path)
      Description copied from interface: ZKACLProvider
      Returns the list of ZK ACLs ACL to apply for a specific Drill znode
      Specified by:
      getDrillAclForPath in interface ZKACLProvider
      Parameters:
      path - The path for which the ACL is being looked up
      Returns:
      List of ZK ACLs ACL for the provided path