返回到文章

采纳

编辑于

我的zookeeper设置了acl权限,kafka启动时报不能连接zookeeper,需要认证,但是我不知道怎么配置kafka??

kafka

启动kafka时报错如下:

[root@localhost kafka]# tail -f logs/kafkaServer.out 
Caused by: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /consumers
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
    at org.I0Itec.zkclient.ZkConnection.create(ZkConnection.java:100)
    at org.I0Itec.zkclient.ZkClient$3.call(ZkClient.java:531)
    at org.I0Itec.zkclient.ZkClient$3.call(ZkClient.java:528)
    at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:991)
    ... 13 more

请问哪位大佬知道怎么配置kafka,可以连接带有acl权限的zookeeper??