Hi All,

Need details about min.insync.replicas​ in the server.properties.

I thought once I add this to server.properties, all subsequent topic create 
should have this as default value.

C:\JAVA_INSTALLATION\kafka\kafka_2.11-0.10.1.1>bin\windows\kafka-topics.bat 
--zookeeper localhost:2181/chroot/cluster1 --create --topic test --partition 3 
--replication-factor 3
Created topic "test".

C:\JAVA_INSTALLATION\kafka\kafka_2.11-0.10.1.1>bin\windows\kafka-topics.bat 
--zookeeper localhost:2181/chroot/cluster1 --describe --topic test
Topic:test      PartitionCount:3        ReplicationFactor:3     Configs:

No min.insync.replicas is set on the topic.

Why do I have explicit provide this configuratoin when creating topic? So whats 
the purpose of this in server.properties??

C:\JAVA_INSTALLATION\kafka\kafka_2.11-0.10.1.1>bin\windows\kafka-topics.bat 
--zookeeper localhost:2181/chroot/cluster1 --create --topic test --partition 3 
--replication-factor 3 --config min.insync.replicas=3
Created topic "test".

C:\JAVA_INSTALLATION\kafka\kafka_2.11-0.10.1.1>bin\windows\kafka-topics.bat 
--zookeeper localhost:2181/chroot/cluster1 --describe --topic test
Topic:test      PartitionCount:3        ReplicationFactor:3     
Configs:min.insync.replicas=3
        Topic: test     Partition: 0    Leader: 1       Replicas: 1,2,0 Isr: 
1,2,0
        Topic: test     Partition: 1    Leader: 2       Replicas: 2,0,1 Isr: 
2,0,1
        Topic: test     Partition: 2    Leader: 0       Replicas: 0,1,2 Isr: 
0,1,2

Thanks
Shri



This e-mail and its contents (to include attachments) are the property of 
National Health Systems, Inc., its subsidiaries and affiliates, including but 
not limited to Rx.com Community Healthcare Network, Inc. and its subsidiaries, 
and may contain confidential and proprietary or privileged information. If you 
are not the intended recipient of this e-mail, you are hereby notified that any 
unauthorized disclosure, copying, or distribution of this e-mail or of its 
attachments, or the taking of any unauthorized action based on information 
contained herein is strictly prohibited. Unauthorized use of information 
contained herein may subject you to civil and criminal prosecution and 
penalties. If you are not the intended recipient, please immediately notify the 
sender by telephone at 800-433-5719 or return e-mail and permanently delete the 
original e-mail.

Reply via email to