kafka If there are multiple patition, when the news is no news consumption order

Create a two partitions, three copies of the topic, first name

kafka-topics.sh  --create --zookeeper datanode1:2181 --partitions 2 --replication-factor 3 --topic first

 

Message transmission order sent by the producer:

 

Consumer receives the order message is not

/kafka-console-consumer.sh --bootstrap-server datanode1:9092 --topic first --from-beginning

 

Guess you like

Origin www.cnblogs.com/mkl34367803/p/11184023.html