Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.0
-
None
-
None
Description
Generally, A Kafka cluster serves multiple businesses. To reduce the impact of businesses, many companies isolate brokers to physically isolate businesses. That is, the topics of certain businesses are created on the specified brokers. The current topic creation script supports only create topic according replica-assignment . This function is not convenient for the service to specify the brokers. Therefore, you need to add this function as follows: Create a topci based on the specified brokers. The replica-assignment-brokers parameter is added to indicate the broker range of the topic distribution. If this parameter is not set, all broker nodes in the cluster are used. For example, kafka-topics.sh --create --topic test06 --partitions 2 --replication-factor 1 --zookeeper zkurl – --replica-assignment-brokers=1,2.