CreateTableReplicationFactor
Specifies the the number of replicas to assign to a topic created through a CREATE TABLE statement.
Data Type
int
Default Value
3
Remarks
When you execute a CREATE TABLE statement, the driver creates a new empty Kafka topic. By default, the topic is created with a replication factor of 3.
You can adjust this value to create topics with more or fewer replicas. The replication factor must not exceed the number of brokers in your Kafka cluster. For example, a topic with a replication factor of 3 cannot be created on a cluster with only 2 brokers.
Kafka uses replicas to maintain availability and prevent data loss during broker failures. If all replicas for a partition become unavailable, the topic cannot be accessed. Increasing the number of replicas can improve resilience on larger clusters.