Thank you,Ewen.
I undertand it now.
bit1...@163.com
From: Ewen Cheslack-Postava
Date: 2015-06-24 11:53
To: users@kafka.apache.org
Subject: Re: No key specified when sending the message to Kafka
It does balance data, but is sticky over short periods of time (for some
definition of short
I have the following code snippet that use Kafka Producer to send message(No
key is specified in the KeyedMessage):
val data = new KeyedMessage[String, String](topicName, msg);
Kafka_Producer.send(data)
Kafka_Producer is an instance of kafka.producer.Producer.
With above code, I observed that
It does balance data, but is sticky over short periods of time (for some
definition of short...). See this FAQ for an explanation:
https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-Whyisdatanotevenlydistributedamongpartitionswhenapartitioningkeyisnotspecified
?
This behavior has been