欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

kafka,zookeeper sasl 权限验证 kafka-zookeeper 

程序员文章站 2022-07-13 21:46:54
...
---------zookeeper auth------------------------------创建node
create /controller

setAcl /controller auth:admin:admin:cdrwa
-------------------------------------------------------------------

bin/zookeeper-shell.sh localhost:2181
-----------------------------------------


-------------------------------------------------------------启动kafka异常解决方法----------------------------
I0Itec.zkclient.exception.ZkException: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth

zookeeper的根目录设置了权限导致的,把zookeeper 的 ‘/’目录的权限清除,再重启kafka不会报错。
相关标签: kafka-zookeeper