When creating a topic this Exception may be thrown by Kafka.
Scenario
If we try to create a topic with replication factor larger than the number of cluster, we will see an error.
Exception
This is the exception thrown by Apache Kafka.
Resolution
Ensure that the replication factor is less than or equal to the number of brokers in the cluster.