Hi Even
       Thanks for your reply.
        I've been using  the kafka-reassign-partition tool.
       But --replica-assignment is exactly what I'm looking for.

       Thanks

On Mon, Jul 27, 2015 at 3:58 PM, Ewen Cheslack-Postava <e...@confluent.io>
wrote:

> Try the --replica-assignment option for kafka-topics.sh. It allows you to
> specify which brokers to assign as replicas instead of relying on the
> assignments being made automatically.
>
> -Ewen
>
> On Mon, Jul 27, 2015 at 12:25 AM, Jilin Xie <jilinxie1...@gmail.com>
> wrote:
>
> > Hi
> >       Is it possible to choose which brokers to use when creating a
> topic?
> > The general command of creating topic is:
> >
> > *bin/kafka-topics.sh --create --zookeeper localhost:2181
> > --replication-factor 1 --partitions 1 --topic test*
> >
> > What I'm looking for is:
> >
> > *bin/kafka-topics.sh --create .....  "--broker-to-use xxx;xxx;xxx"*
> >
> >
> > *It's because, I want the topic to be hosted on the brokers which
> > would be closest to the possible producer.*
> >
> >
> > *       Thanks in advance.*
> >
>
>
>
> --
> Thanks,
> Ewen
>

Reply via email to