Search in sources :

Example 1 with RackAwareMode

use of kafka.admin.RackAwareMode in project debezium by debezium.

the class KafkaServer method createTopic.

/**
 * Create the specified topic.
 *
 * @param topic the name of the topic to create
 * @param numPartitions the number of partitions for the topic
 * @param replicationFactor the replication factor for the topic
 */
public void createTopic(String topic, int numPartitions, int replicationFactor) {
    RackAwareMode rackAwareMode = null;
    AdminUtils.createTopic(getZkUtils(), topic, numPartitions, replicationFactor, new Properties(), rackAwareMode);
}
Also used : RackAwareMode(kafka.admin.RackAwareMode) Properties(java.util.Properties)

Aggregations

Properties (java.util.Properties)1 RackAwareMode (kafka.admin.RackAwareMode)1