kafka8 於kafka7 兼容性的問題

kafka8 於kafka7 兼容性的問題:本地運行kafka8的客戶端,一切ok,可是到了linux上就包下面的錯誤:java

緣由:項目中存在kafka7的jar,因此在linux上運行kafka8的客戶端的時候,會加載kafka7的scale 的包。linux

因此刪除kafka7的jar 就okui

Exception in thread "Thread-21" java.lang.IllegalArgumentException: Missing required property 'groupid'scala

        at kafka.utils.Utils$.getString(Utils.scala:274)get

        at kafka.consumer.ConsumerConfig.<init>(ConsumerConfig.scala:48)kafka

        at com.sohu.smc.common.kafka.Kafka.getConsumer(Kafka.java:145)it

        at com.sohu.smc.common.kafka.Kafka.consumeForever(Kafka.java:173)io

        at com.sohu.smc.kafka.interfacelog.KafkaModuleConsumer$ModelConsumer.run(KafkaModuleConsumer.java:53)thread

        at java.lang.Thread.run(Thread.java:662)require

java.lang.IllegalArgumentException: Missing required property 'groupid'

        at kafka.utils.Utils$.getString(Utils.scala:274)

        at kafka.consumer.ConsumerConfig.<init>(ConsumerConfig.scala:48)

        at com.sohu.smc.common.kafka.Kafka.getConsumer(Kafka.java:145)

        at com.sohu.smc.common.kafka.Kafka.consumeForever(Kafka.java:173)

        at com.sohu.smc.kafka.interfacelog.KafkaModuleConsumer$ModelConsumer.run(KafkaModuleConsumer.java:53)

        at java.lang.Thread.run(Thread.java:662)

相關文章
相關標籤/搜索