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