ZooKeeper is a distributed, open source distributed application coordination service. It is an open source implementation of Google's Chubby and an important component of Hadoop and Hbase. It is a software that provides consistent services for distributed applications. The functions provided include: configuration maintenance, domain name services, distributed synchronization, group services, etc.
The goal of ZooKeeper is to encapsulate complex and error-prone key services and provide users with simple and easy-to-use interfaces and a system with efficient performance and stable functions.
Under normal circumstances, ZooKeeper allows unauthorized access.
连接zk客户端
./zkCli.sh -server 10.224.192.101:2181
1.查看当前 节点中所包含的内容
ls path
2.创建节点并赋值
create [-s] [-e] path data acl
11.查看当前zk状态
./zkServer.sh status
12.查看zk进程
ps -ef |grep zookeeper
13.删除节点下的内容
rmr /rmstore/ZKRMStateRoot/RMAppRoot/*
14.查看节点权限
getAcl /rmstore/ZKRMStateRoot/RMVersionNode
15.设置节点权限
setAcl /rmstore/ZKRMStateRoot world:anyone:rwcda
Solution:
Add a zookeeper permission account and configure corresponding access permissions for ZooKeeper.
Before configuration:
Use the command
addauth digest settle:settle
setAcl / auth:settle:settle:cdrwa
to encrypt the ACL permission information
. After configuration: