I have two kafka brokers with two partitions on the local machine and use the following tool to write one local file in the kafka test2 theme.
# create topic ./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 2 --partitions 2 --topic test2 Created topic "test2".
Then I find that all messages are in one section, how to debug this?
$ kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9093,localhost:9094 --topic test2 --time -1 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http:
Section Status:
$ kafka-topics.sh --describe --zookeeper localhost:2181 --topic test2 Topic:test2 PartitionCount:2 ReplicationFactor:2 Configs: Topic: test2 Partition: 0 Leader: 1 Replicas: 1,2 Isr: 1,2 Topic: test2 Partition: 1 Leader: 2 Replicas: 2,1 Isr: 2,1
source share