kafka,zookeeper sasl 权限验证 kafka-zookeeper
程序员文章站
2022-07-13 21:53:55
...
---------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不会报错。
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不会报错。