kafka报错:Exception in thread “main“ joptsimple.UnrecognizedOptionException: zookeeper is not a recogn
Posted zhangphil
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kafka报错:Exception in thread “main“ joptsimple.UnrecognizedOptionException: zookeeper is not a recogn相关的知识,希望对你有一定的参考价值。
kafka创建主题topic报错:Exception in thread "main" joptsimple.UnrecognizedOptionException: zookeeper is not a recogn
如图:
原因:kafka最新版本创建主题topic方式已经改变,如果仍然按照过去老一套的方式比如:
kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic topic001
就会报上面的错误。
解决方案,按照最新的kafka创建主题topic方式创建:
kafka-topics.bat --create --topic zhangphil_demo --bootstrap-server localhost:9092
kafka创建主题topic成功:
以上是关于kafka报错:Exception in thread “main“ joptsimple.UnrecognizedOptionException: zookeeper is not a recogn的主要内容,如果未能解决你的问题,请参考以下文章
java客户端作为kafka的consumer报错org.I0Itec.zkclient.exception.ZkTimeoutException
java客户端作为kafka的consumer报错org.I0Itec.zkclient.exception.ZkTimeoutException
spring boot 整合kafka 报错 Exception thrown when sending a message with key='null' and payload=J
SparkSpark cache 报错 Exception thrown in awaitResult
Exception in thread main org.apache.ibatis.exceptions.PersistenceException:报错解决
Unity2021打包报错: Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/