I want to create a broker cluster using Kafka 0.10 API
preferable with Java
. As far as I have read kafka_2.11-0.10.0.0.jar
do support creating broker using :
import kafka.cluster.Broker;
import kafka.cluster.Cluster;
But I can't find any documentation for doing so. I recently read [1], which tell how to create a topic using Kafka API
in Java
. Can we do similar things to create broker cluster, update partition, migrate existing data/partition to new broker (as these new broker will not automatically be assigned any data partitions, so unless partitions are moved to them they won't be doing any work [2])
[1] How Can we create a topic in Kafka from the IDE using API
[2] https://kafka.apache.org/0100/ops.html#basic_ops_cluster_expansion