./bin/kafka-topics --describe --topic topic-a1 --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:3181
Topic:topic-a1 PartitionCount:4 ReplicationFactor:2 Configs:
Topic: topic-a1 Partition: 0 Leader: 1 Replicas: 1,0 Isr: 0,1
Topic: topic-a1 Partition: 1 Leader: 1 Replicas: 1,0 Isr: 0,1
Topic: topic-a1 Partition: 2 Leader: 0 Replicas: 0,1 Isr: 0,1
Topic: topic-a1 Partition: 3 Leader: 0 Replicas: 0,1 Isr: 0,1
./bin/kafka-producer-perf-test --topic topic-a1 --num-records 200000 --record-size 1000 --throughput 10000000 --producer-props bootstrap.servers=nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062
./bin/kafka-consumer-perf-test --topic topic-a1 --broker-list nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062 --messages 10
./bin/confluent-rebalancer execute --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:3181 --metrics-bootstrap-server nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062 --throttle 10000000 --verboseComputing the rebalance plan (this may take a while) ...
You are about to move 0 replica(s) for 0 partitions to 0 broker(s) with total size 0 MB.
The preferred leader for 2 partition(s) will be changed.
In total, the assignment for 2 partitions will be changed.
The minimum free volume space is set to 20.0%.
The following brokers will have less than 40% of free volume space during the rebalance:
Broker Current Size (MB) Size During Rebalance (MB) Free % During Rebalance Size After Rebalance (MB) Free % After Rebalance
0 4,021.1 4,021.1 14.2 4,021.1 14.2
1 1,240.8 1,240.8 14.2 1,240.8 14.2
2 620.4 620.4 14.2 620.4 14.2
3 0 0 14.2 0 14.2
Min/max stats for brokers (before -> after):
Type Leader Count Replica Count Size (MB)
Min 0 (id: 3) -> 0 (id: 3) 0 (id: 3) -> 0 (id: 3) 0 (id: 3) -> 0 (id: 3)
Max 125 (id: 0) -> 123 (id: 0) 127 (id: 0) -> 127 (id: 0) 4,021.1 (id: 0) -> 4,021.1 (id: 0)
No racks are defined.
Broker stats (before -> after):
Broker Leader Count Replica Count Size (MB) Free Space (%)
0 125 -> 123 127 -> 127 4,021.1 -> 4,021.1 14.2 -> 14.2
1 3 -> 5 12 -> 12 1,240.8 -> 1,240.8 14.2 -> 14.2
2 2 -> 2 3 -> 3 620.4 -> 620.4 14.2 -> 14.2
3 0 -> 0 0 -> 0 0 -> 0 14.2 -> 14.2
Would you like to continue? (y/n): y
The rebalance has been started, run `status` to check progress.
Warning: You must run the `status` or `finish` command periodically, until the rebalance completes, to ensure the throttle is removed. You can also alter the throttle by re-running the execute command passing a new value.
./bin/kafka-topics --describe --topic topic-a1 --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:3181
Topic:topic-a1 PartitionCount:4 ReplicationFactor:2 Configs:
Topic: topic-a1 Partition: 0 Leader: 1 Replicas: 1,0 Isr: 0,1
Topic: topic-a1 Partition: 1 Leader: 1 Replicas: 1,0 Isr: 0,1
Topic: topic-a1 Partition: 2 Leader: 0 Replicas: 0,1 Isr: 0,1
Topic: topic-a1 Partition: 3 Leader: 0 Replicas: 0,1 Isr: 0,1
The confluent-rebalancer tool balances data so that the number of leaders and disk usage are even across brokers and racks on a per topic and cluster level while minimising data movement.   --
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/xeyNQ5cP6fU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/7d93fe32-aa85-4ada-b7b7-f3dd44f8de81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
when i ran script - kafka-preferred-replica-election, it did the re-election as required../bin/kafka-preferred-replica-election --zookeeper localhost:3181so does that mean that i need to run the script -> ./bin/confluent-rebalancer to rebalance the data,but for the leader election, the script to be run is -> ./bin/kafka-preferred-replica-election
The documentation mentions this (link - http://docs.confluent.io/current/kafka/rebalancer/rebalancer.html)Theconfluent-rebalancertool balances data so that the number of leaders and disk usage are even across brokers and racks on a per topic and cluster level while minimising data movement.seems there is a disconnect here, pls let me know if anyone has inputs.
On Tue, Aug 1, 2017 at 4:47 PM, karan alang <karan...@gmail.com> wrote:-> Force Creation of offsets topic, by creating a Consumer (NOT SURE WHAT THIS IS FOR ???) :
-> run the following command to rebalanceThe plan that is presented does not really any rebalancing ->
./bin/confluent-rebalancer execute --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:3181 --metrics-bootstrap-server nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062 --throttle 10000000 --verboseComputing the rebalance plan (this may take a while) ...
You are about to move 0 replica(s) for 0 partitions to 0 broker(s) with total size 0 MB.
The preferred leader for 2 partition(s) will be changed.
In total, the assignment for 2 partitions will be changed.
The minimum free volume space is set to 20.0%.
The following brokers will have less than 40% of free volume space during the rebalance:
Broker Current Size (MB) Size During Rebalance (MB) Free % During Rebalance Size After Rebalance (MB) Free % After Rebalance
0 4,021.1 4,021.1 14.2 4,021.1 14.2
1 1,240.8 1,240.8 14.2 1,240.8 14.2
2 620.4 620.4 14.2 620.4 14.2
3 0 0 14.2 0 14.2
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/xeyNQ5cP6fU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/1ea96bda-17fd-4e67-8aa3-46aecd97ec8b%40googlegroups.com.
./bin/kafka-topics --describe --topic _confluent-metrics --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:3181
Topic:_confluent-metrics PartitionCount:12 ReplicationFactor:1 Configs:retention.ms=259200000,segment.ms=14400000,min.insync.replicas=1,retention.bytes=-1
Topic: _confluent-metrics Partition: 0 Leader: 0 Replicas: 0 Isr: 0
Topic: _confluent-metrics Partition: 1 Leader: 2 Replicas: 2 Isr: 2
Topic: _confluent-metrics Partition: 2 Leader: 0 Replicas: 0 Isr: 0
Topic: _confluent-metrics Partition: 3 Leader: 3 Replicas: 3 Isr: 3
Topic: _confluent-metrics Partition: 4 Leader: 0 Replicas: 0 Isr: 0
Topic: _confluent-metrics Partition: 5 Leader: 1 Replicas: 1 Isr: 1
Topic: _confluent-metrics Partition: 6 Leader: 3 Replicas: 3 Isr: 3
Topic: _confluent-metrics Partition: 7 Leader: 2 Replicas: 2 Isr: 2
Topic: _confluent-metrics Partition: 8 Leader: 1 Replicas: 1 Isr: 1
Topic: _confluent-metrics Partition: 9 Leader: 3 Replicas: 3 Isr: 3
Topic: _confluent-metrics Partition: 10 Leader: 1 Replicas: 1 Isr: 1
Topic: _confluent-metrics Partition: 11 Leader: 2 Replicas: 2 Isr: 2
./bin/confluent-rebalancer execute --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:2181 --metrics-bootstrap-server nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062 --throttle 100000 --remove-broker-ids 1
./bin/confluent-rebalancer execute --zookeeper nwk2-bdp-kafka-04.gdcs-qa.apple.com:2181 --metrics-bootstrap-server nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9092,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9082,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9072,nwk2-bdp-kafka-04.gdcs-qa.apple.com:9062 --throttle 100000 --remove-broker-ids 1
Computing the rebalance plan (this may take a while) ...
Unexpected exception: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
java.lang.IllegalArgumentException: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
at io.confluent.kafka.databalancing.metric.MetricsCollector.collectMetrics(MetricsCollector.java:63)
at io.confluent.kafka.databalancing.DefaultRebalancer.metrics(DefaultRebalancer.java:150)
at io.confluent.kafka.databalancing.DefaultRebalancer.proposeRebalance(DefaultRebalancer.java:67)
at io.confluent.kafka.databalancing.ConfluentRebalancerCommand$Execute.doRun(ConfluentRebalancerCommand.java:242)
at io.confluent.kafka.databalancing.ConfluentRebalancerCommand$BaseRebalanceCommand.run(ConfluentRebalancerCommand.java:120)
at io.confluent.kafka.databalancing.ConfluentRebalancerCommand.run(ConfluentRebalancerCommand.java:61)
at io.confluent.kafka.databalancing.ConfluentRebalancerCommand.main(ConfluentRebalancerCommand.java:36)
Unexpected exception: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
java.lang.IllegalArgumentException: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
at io.confluent.kafka.databalancing.metric.MetricsCollector.collectMetrics(MetricsCollector.java:63)
The question is - what should the value of the property 'confluent.metrics.reporter.bootstrap.servers'
be set to ?
should it be ->
1) confluent.metrics.reporter.bootstrap.servers=<host1>:<port1>,<host1>:<port2>,<host1>:<port3>,<host1>:<port4>
(i.e. the parameter points to all the brokers)
OR
2) confluent.metrics.reporter.bootstrap.servers=<host1>:<port1>
(i.e. parameter points to corresponding broker1:port1 )
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/1ea96bda-17fd-4e67-8aa3-46aecd97ec8b%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/xeyNQ5cP6fU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/5b5e15b9-c7cf-401d-aa2e-521b0ced5b57%40googlegroups.com.
Hello - here is update on thisThe error below was because i was giving incorrect zookeeper port :( .. so this is not really an issueUnexpected exception: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
java.lang.IllegalArgumentException: Did not receive a cluster id to filter on. Please ensure that you are using Kafka >= 0.10.1, and that you have some brokers running in the cluster.
at io.confluent.kafka.databalancing.metric.MetricsCollector.collectMetrics(MetricsCollector.java:63)
However, the other questions remain ..i.e.The question is - what should the value of the property 'confluent.metrics.reporter.bootstrap.servers'
be set to ?
should it be ->
1) confluent.metrics.reporter.bootstrap.servers=<host1>:<port1>,<host1>:<port2>,<host1>:<port3>,<host1>:<port4>
(i.e. the parameter points to all the brokers)
OR
2) confluent.metrics.reporter.bootstrap.servers=<host1>:<port1>
(i.e. parameter points to corresponding broker1:port1)
and - why does the topic _confluent-metric have only one replication ?btw, i checked the server.properties of the brokers and realized that the property confluent.metrics.reporter.topic.replicas=1 was uncommented in one of the broker properties file.I assume this property dictates the replication factor the topic - _confluent-metrics ?
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/xeyNQ5cP6fU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/80415645-1601-4f5d-a592-bccaab958ba7%40googlegroups.com.