Class ZooAclUtil


  • public class ZooAclUtil
    extends Object
    • Method Detail

      • extractAuthName

        public static String extractAuthName​(org.apache.zookeeper.data.ACL acl)
      • translateZooPerm

        public static String translateZooPerm​(int perm)
        translate the ZooKeeper ACL perm bits into a string. The output order is cdrwa (when all perms are set) Copied from `org.apache.zookeeper.ZKUtil.getPermString()` added in more recent ZooKeeper versions.
      • checkWritableAuth

        public static ZooAclUtil.ZkAccumuloAclStatus checkWritableAuth​(List<org.apache.zookeeper.data.ACL> acls)
        Process the ZooKeeper acls and return a structure that shows if the accumulo user has ALL (cdrwa) access and if any other user has anything other than read access.
        • Accumulo having access is expected - anything else needs checked
        • Anyone having more than read access is unexpected and should be checked.
        Parameters:
        acls - ZooKeeper ACLs for a node
        Returns:
        acl status with accumulo and other accesses.