./kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list 
192.168.10.145:9092 --topic IIoT
Error: partition 0 does not have a leader. Skip getting offsets
[2020-11-19 09:28:47,688] WARN [Consumer clientId=GetOffsetShell, groupId=null] 
1 partitions have leader brokers without a matching listener, including 
[IIoT-0] (org.apache.kafka.clients.NetworkClient)
IIoT:1:20825
IIoT:2:12211


./kafka-topics.sh --zookeeper localhost:2181 --describe --topic IIoT
Topic: IIoTPartitionCount: 3ReplicationFactor: 1Configs: 
Topic: IIoTPartition: 0Leader: noneReplicas: 3Isr: 3
Topic: IIoTPartition: 1Leader: 1Replicas: 1Isr: 1
Topic: IIoTPartition: 2Leader: 2Replicas: 2Isr: 2


replica-election.json

{

 "partitions":

  [

    {"topic": "IIoT", "partition": "0"},

    {"topic": "IIoT", "partition": "1"},

    {"topic": "IIoT", "partition": "2"}

  ]

}





./kafka-leader-election.sh --election-type preferred --path-to-json-file 
replica-election.json --bootstrap-server 
192.168.10.145:9092,192.168.10.146:9092,192.168.10.147:9092
Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: 
Expected `Int` value, received "0"


I don’t understand what "Expected `Int` value, received "0"" means.





Reply via email to