Thanks Jun.

I think my question is if I have a program which produces a topic with a
partitioner that always returns 0, does all the messages go the same
broker? If so, what happens if I restart the program, does the messages
still go the same broker? Note that all the connections are through
zookeeper.


Thanks,


On Tue, May 8, 2012 at 5:37 PM, Jun Rao <jun...@gmail.com> wrote:

> Xiaoyu,
>
> A simpler way to do that is to send all produce requests to 1 broker and
> configure that broker to have 1 partition per topic.
>
> Jun
>
> On Tue, May 8, 2012 at 12:41 PM, xiaoyu wang <xiaoyu.w...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I want to keep the order of record in my topic so I created the producer
> > with a partitioner that always returns 0. I have the following questions
> >
> >
> >   - will my topic be stored in 1 broker only?
> >   - If so, which broker does my topic go to?
> >   - what happens if I change the partitioner later to e.g. random
> >   partitoner?
> >
> >
> > Thanks,
> >
> > -Xiaoyu
> >
>

Reply via email to