Re: even if i pass key no change in partition

2017-04-18 Thread Ewen Cheslack-Postava
Do you have more than 1 partition? You may have an auto-created topic with only 1 partition, in which case the partition of messages will *always* be the same, regardless of key. -Ewen On Fri, Mar 24, 2017 at 5:52 AM, Laxmi Narayan wrote: > Hi, > > I am passing key in

even if i pass key no change in partition

2017-03-24 Thread Laxmi Narayan
Hi, I am passing key in producer but still no change in partition. I can see in producer response key value but no change in partition. *This is how my props looks:* props.put("bootstrap.servers", "localhost:9092"); props.put("group.id", "test");