Kafka, mail # user - Re: Kafka 0.8 - KeyedMessage? - 2013-01-07, 17:31
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
Re: Kafka 0.8 - KeyedMessage?

Thanks for the response. If I understand you correctly, messages with
the same key will not be automatically stored at the same partition
unless I implement a partition function to route the message based on
the key?

The quick start guide for 0.7 has the following:
"Send a message with a partition key. Messages with the same key are
sent to the same partition
ProducerData<String, String> data = new ProducerData<String,
String>("test-topic", "test-key", "test-message");

So... there is no simple way to send messages to a certain default
partition in 0.8?


On Mon, Jan 7, 2013 at 12:04 PM, Jun Rao <[EMAIL PROTECTED]> wrote:

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB