kafka內(nèi)置zookeeper啟動(dòng)失敗報(bào)錯(cuò)INFO ZooKeeper audit is disabled.(org.apache.zookeeper.audit.ZKAuditProvider)2022年新版win10安裝kafka
安裝配置kafka,在啟動(dòng)zookeeper時(shí)報(bào)錯(cuò)ZooKeeper audit is disabled
原因分析:
尋找資料發(fā)現(xiàn)是zookeeper設(shè)置參數(shù)問(wèn)題
解決方案:
修改kafka安裝目錄下config文件中的zookeeper.properties文件
安裝目錄圖片如下
修改如下參數(shù)
在文件中添加audit.enable=true
啟動(dòng)zookeeper,不關(guān)閉cmd窗口
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-516772.html
啟動(dòng)kafka,不關(guān)閉cmd窗口
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-516772.html
創(chuàng)建topic命令
.\bin\windows\kafka-topics.bat --create --topic yourTopicName --bootstrap-server localhost:9092
獲取所有topic信息命令
.\bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --list
查詢topic的詳細(xì)信息
.\bin\windows\kafka-topics.bat --describe --topic yourTopicName --bootstrap-server localhost:9092
到了這里,關(guān)于kafka內(nèi)置zookeeper啟動(dòng)失敗報(bào)錯(cuò)INFO ZooKeeper audit is disabled. (org.apache.zookeeper.audit.ZKAuditProvider)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!