ERROR Error when sending message to topic

前端 未结 13 2275
借酒劲吻你
借酒劲吻你 2020-12-28 13:46

While producing message in kafka, i am getting the following error :

$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic nil_PF1_P1
hi
hello         


        
13条回答
  •  情深已故
    2020-12-28 14:04

    Another scenario here. No clue on what was happening till I find a kafka log with the following message:

    Caused by: java.lang.IllegalArgumentException: Invalid version for API key 3: 2
    

    Apparently the producer was using a newer kafka-client (java) than the kafka server and the API used was invalid (client using 1.1 and server on 10.0). On the Client/Producer I got the:

    Error producing to topic Failed to update metadata after 60000 ms.
    

提交回复
热议问题