I'll try that out. Thanks! ________________________________________ From: Jun Rao [jun...@gmail.com] Sent: Monday, December 10, 2012 1:04 PM To: users@kafka.apache.org Subject: Re: Logging which broker a message was sent to
So, you are using Producer, not SyncProducer. Assuming that you are using DefaultEventHandler, there is a trace level logging that tells you which broker a request is sent to. Thanks, Jun On Mon, Dec 10, 2012 at 8:10 AM, Sybrandy, Casey < casey.sybra...@six3systems.com> wrote: > Is it at least possible to see which broker a message is sent to? I'm > using a Zookeeper based producer and we have multiple brokers in our > environment. If I can tell which broker a message is sent to, that would > be a big help. > > ________________________________________ > From: Jun Rao [jun...@gmail.com] > Sent: Monday, December 10, 2012 11:07 AM > To: users@kafka.apache.org > Subject: Re: Logging which broker a message was sent to > > If you use -1 (ie, a random partition) as the partition #, there is no easy > way to know which partition that the broker picks. However, you can > explicitly specify the partition # in the request itself. > > Thanks, > > Jun > > On Mon, Dec 10, 2012 at 7:26 AM, Sybrandy, Casey < > casey.sybra...@six3systems.com> wrote: > > > Is it possible to log/see which broker, and perhaps partition, a producer > > sent a message to? I'm using the SyncProducer if that matters. > > >