Topic: mycooltopic Partition: 0 Leader: 10139 Replicas: 10139,10117,10116 Isr: 10116,10117,10139
Topic: mycooltopic Partition: 1 Leader: 10133 Replicas: 10133,10118,10104 Isr: 10104,10118,10133
Topic: mycooltopic Partition: 2 Leader: 10133 Replicas: 10133,10117,10105 Isr: 10105,10117,10133
Topic: mycooltopic Partition: 3 Leader: 10118 Replicas: 10118,10139,10105 Isr: 10105,10118,10139
Topic: mycooltopic Partition: 4 Leader: 10103 Replicas: 10103,10133,10105 Isr: 10103,10105,10133
Topic: mycooltopic Partition: 5 Leader: 10103 Replicas: 10103,10133,10116 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 6 Leader: 10139 Replicas: 10139,10105,10117 Isr: 10105,10117,10139
Topic: mycooltopic Partition: 7 Leader: 10133 Replicas: 10133,10104,10118 Isr: 10104,10118,10133
Topic: mycooltopic Partition: 8 Leader: 10133 Replicas: 10133,10118,10105 Isr: 10105,10118,10133
Topic: mycooltopic Partition: 9 Leader: 10117 Replicas: 10117,10133,10105 Isr: 10105,10117,10133
Topic: mycooltopic Partition: 10 Leader: 10116 Replicas: 10116,10105,10103 Isr: 10103,10105,10116
Topic: mycooltopic Partition: 11 Leader: 10105 Replicas: 10105,10116,10139 Isr: 10105,10116,10139
Topic: mycooltopic Partition: 12 Leader: 10104 Replicas: 10132,10104,10116 Isr: 10104,10116,10132
Topic: mycooltopic Partition: 13 Leader: 10105 Replicas: 10105,10139,10117 Isr: 10105,10117,10139
Topic: mycooltopic Partition: 14 Leader: 10132 Replicas: 10132,10105,10118 Isr: 10105,10118,10132
Topic: mycooltopic Partition: 15 Leader: 10118 Replicas: 10118,10139,10133 Isr: 10118,10133,10139
Topic: mycooltopic Partition: 16 Leader: 10105 Replicas: 10105,10117,10104 Isr: 10105,10104,10117
Topic: mycooltopic Partition: 17 Leader: 10105 Replicas: 10105,10118,10132 Isr: 10105,10118,10132
Topic: mycooltopic Partition: 18 Leader: 10133 Replicas: 10133,10116,10103 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 19 Leader: 10105 Replicas: 10105,10117,10139 Isr: 10105,10117,10139
Topic: mycooltopic Partition: 20 Leader: 10139 Replicas: 10139,10104,10116 Isr: 10104,10116,10139
Topic: mycooltopic Partition: 21 Leader: 10105 Replicas: 10105,10132,10117 Isr: 10105,10117,10132
Topic: mycooltopic Partition: 22 Leader: 10116 Replicas: 10116,10139,10133 Isr: 10116,10139,10133
Topic: mycooltopic Partition: 23 Leader: 10116 Replicas: 10116,10132,10104 Isr: 10104,10116,10132
Topic: mycooltopic Partition: 24 Leader: 10104 Replicas: 10104,10118,10132 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 25 Leader: 10118 Replicas: 10118,10133,10105 Isr: 10105,10118,10133
Topic: mycooltopic Partition: 26 Leader: 10118 Replicas: 10118,10132,10103 Isr: 10103,10118,10132
Topic: mycooltopic Partition: 27 Leader: 10117 Replicas: 10117,10103,10139 Isr: 10103,10117,10139
Topic: mycooltopic Partition: 28 Leader: 10132 Replicas: 10132,10103,10116 Isr: 10116,10132,10103
Topic: mycooltopic Partition: 29 Leader: 10132 Replicas: 10132,10104,10117 Isr: 10104,10117,10132
Topic: mycooltopic Partition: 30 Leader: 10132 Replicas: 10132,10104,10118 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 31 Leader: 10118 Replicas: 10118,10105,10133 Isr: 10105,10118,10133
Topic: mycooltopic Partition: 32 Leader: 10116 Replicas: 10116,10105,10132 Isr: 10105,10116,10132
Topic: mycooltopic Partition: 33 Leader: 10116 Replicas: 10116,10139,10105 Isr: 10105,10116,10139
Topic: mycooltopic Partition: 34 Leader: 10133 Replicas: 10133,10116,10103 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 35 Leader: 10105 Replicas: 10105,10116,10139 Isr: 10105,10116,10139
Topic: mycooltopic Partition: 36 Leader: 10104 Replicas: 10104,10132,10117 Isr: 10104,10117,10132
Topic: mycooltopic Partition: 37 Leader: 10132 Replicas: 10132,10103,10118 Isr: 10103,10118,10132
Topic: mycooltopic Partition: 38 Leader: 10105 Replicas: 10105,10117,10133 Isr: 10105,10117,10133
Topic: mycooltopic Partition: 39 Leader: 10133 Replicas: 10133,10118,10104 Isr: 10104,10118,10133
Topic: mycooltopic Partition: 40 Leader: 10104 Replicas: 10104,10118,10132 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 41 Leader: 10117 Replicas: 10117,10133,10103 Isr: 10103,10117,10133
Topic: mycooltopic Partition: 42 Leader: 10103 Replicas: 10103,10117,10139 Isr: 10103,10117,10139
Topic: mycooltopic Partition: 43 Leader: 10103 Replicas: 10103,10132,10116 Isr: 10103,10116,10132
Topic: mycooltopic Partition: 44 Leader: 10139 Replicas: 10139,10103,10117 Isr: 10103,10117,10139
Topic: mycooltopic Partition: 45 Leader: 10132 Replicas: 10132,10104,10118 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 46 Leader: 10103 Replicas: 10117,10103,10133 Isr: 10103,10117,10133
Topic: mycooltopic Partition: 47 Leader: 10116 Replicas: 10116,10139,10104 Isr: 10104,10116,10139
Topic: mycooltopic Partition: 48 Leader: 10117 Replicas: 10117,10105,10132 Isr: 10105,10117,10132
Topic: mycooltopic Partition: 49 Leader: 10116 Replicas: 10116,10132,10103 Isr: 10103,10116,10132
Topic: mycooltopic Partition: 50 Leader: 10104 Replicas: 10104,10117,10139 Isr: 10104,10117,10139
Topic: mycooltopic Partition: 51 Leader: 10133 Replicas: 10133,10104,10116 Isr: 10104,10116,10133
Topic: mycooltopic Partition: 52 Leader: 10104 Replicas: 10104,10133,10117 Isr: 10104,10117,10133
Topic: mycooltopic Partition: 53 Leader: 10104 Replicas: 10104,10139,10118 Isr: 10104,10118,10139
Topic: mycooltopic Partition: 54 Leader: 10103 Replicas: 10103,10116,10133 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 55 Leader: 10118 Replicas: 10118,10132,10104 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 56 Leader: 10104 Replicas: 10104,10118,10132 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 57 Leader: 10117 Replicas: 10117,10133,10103 Isr: 10103,10117,10133
Topic: mycooltopic Partition: 58 Leader: 10118 Replicas: 10118,10103,10139 Isr: 10103,10118,10139
Topic: mycooltopic Partition: 59 Leader: 10139 Replicas: 10139,10103,10117 Isr: 10103,10117,10139
Topic: mycooltopic Partition: 60 Leader: 10104 Replicas: 10104,10139,10118 Isr: 10104,10118,10139
Topic: mycooltopic Partition: 61 Leader: 10117 Replicas: 10117,10104,10133 Isr: 10104,10117,10133
Topic: mycooltopic Partition: 62 Leader: 10139 Replicas: 10139,10116,10104 Isr: 10104,10116,10139
Topic: mycooltopic Partition: 63 Leader: 10118 Replicas: 10118,10104,10132 Isr: 10104,10118,10132
Topic: mycooltopic Partition: 64 Leader: 10117 Replicas: 10117,10139,10105 Isr: 10105,10117,10139
Topic: mycooltopic Partition: 65 Leader: 10118 Replicas: 10118,10105,10139 Isr: 10105,10118,10139
Topic: mycooltopic Partition: 66 Leader: 10139 Replicas: 10139,10105,10116 Isr: 10105,10116,10139
Topic: mycooltopic Partition: 67 Leader: 10103 Replicas: 10103,10132,10118 Isr: 10103,10118,10132
Topic: mycooltopic Partition: 68 Leader: 10116 Replicas: 10116,10103,10133 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 69 Leader: 10132 Replicas: 10132,10116,10104 Isr: 10104,10116,10132
Topic: mycooltopic Partition: 70 Leader: 10105 Replicas: 10105,10117,10132 Isr: 10105,10117,10132
Topic: mycooltopic Partition: 71 Leader: 10139 Replicas: 10139,10118,10103 Isr: 10103,10118,10139
Topic: mycooltopic Partition: 72 Leader: 10116 Replicas: 10116,10105,10139 Isr: 10105,10116,10139
Topic: mycooltopic Partition: 73 Leader: 10103 Replicas: 10103,10133,10116 Isr: 10103,10116,10133
Topic: mycooltopic Partition: 74 Leader: 10103 Replicas: 10103,10132,10117 Isr: 10103,10117,10132
Topic: mycooltopic Partition: 75 Leader: 10104 Replicas: 10104,10133,10118 Isr: 10104,10118,10133
Topic: mycooltopic Partition: 76 Leader: 10117 Replicas: 10117,10103,10133 Isr: 10103,10117,10133
Topic: mycooltopic Partition: 77 Leader: 10139 Replicas: 10139,10116,10104 Isr: 10104,10116,10139
Topic: mycooltopic Partition: 78 Leader: 10103 Replicas: 10103,10116,10132 Isr: 10103,10116,10132
Topic: mycooltopic Partition: 79 Leader: 10132 Replicas: 10132,10117,10105 Isr: 10105,10117,10132
Topic: mycooltopic Partition: 80 Leader: 10133 Replicas: 10133,10118,10103 Isr: 10103,10118,10133
At least the following partitions violate rack awareness and put two replicas in the same rack:
# kafka-tools --zookeeper myzk.mydomain:2181/kafka --generate --moves 1 balance --types rackaware
[WARN] Note that sizes are not calculated by this docker image
[INFO] Connecting to zookeeper myzk.mydomain:2181/kafka
[INFO] Getting partition list from Zookeeper
[INFO] Closing connection to zookeeper
[INFO] Getting partition sizes via SSH for 10116.mydomain
[INFO] Getting partition sizes via SSH for 10117.mydomain
[INFO] Getting partition sizes via SSH for 10118.mydomain
[INFO] Getting partition sizes via SSH for 10132.mydomain
[INFO] Getting partition sizes via SSH for 10133.mydomain
[INFO] Getting partition sizes via SSH for 10103.mydomain
[INFO] Getting partition sizes via SSH for 10104.mydomain
[INFO] Getting partition sizes via SSH for 10105.mydomain
[INFO] Getting partition sizes via SSH for 10139.mydomain
[INFO] Starting partition balance by rack
[INFO] Partition moves required: 23
[INFO] Number of batches: 23
[INFO] --execute flag NOT specified. DRY RUN ONLY
[INFO] Executing partition reassignment 1/23: {"version": 1, "partitions": [{"topic": "test", "partition": 0, "replicas": [10133, 10117, 10103]}]}
[INFO] Executing partition reassignment 2/23: {"version": 1, "partitions": [{"topic": "test", "partition": 2, "replicas": [10116, 10105, 10132]}]}
[INFO] Executing partition reassignment 3/23: {"version": 1, "partitions": [{"topic": "test", "partition": 4, "replicas": [10104, 10118, 10133]}]}
[INFO] Executing partition reassignment 4/23: {"version": 1, "partitions": [{"topic": "test", "partition": 7, "replicas": [10139, 10103, 10116]}]}
[INFO] Executing partition reassignment 5/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 0, "replicas": [10103, 10139, 10116]}]}
[INFO] Executing partition reassignment 6/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 4, "replicas": [10118, 10133, 10105]}]}
[INFO] Executing partition reassignment 7/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 9, "replicas": [10116, 10133, 10105]}]}
[INFO] Executing partition reassignment 8/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 10, "replicas": [10117, 10139, 10103]}]}
[INFO] Executing partition reassignment 9/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 13, "replicas": [10103, 10139, 10117]}]}
[INFO] Executing partition reassignment 10/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 15, "replicas": [10105, 10117, 10133]}]}
[INFO] Executing partition reassignment 11/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 16, "replicas": [10132, 10117, 10104]}]}
[INFO] Executing partition reassignment 12/23: {"version": 1, "partitions": [{"topic": "mycooltopic", "partition": 22, "replicas": [10104, 10117, 10133]}]}
[INFO] Executing partition reassignment 13/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 2, "replicas": [10105, 10139, 10117]}]}
[INFO] Executing partition reassignment 14/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 4, "replicas": [10105, 10117, 10132]}]}
[INFO] Executing partition reassignment 15/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 5, "replicas": [10105, 10117, 10132]}]}
[INFO] Executing partition reassignment 16/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 6, "replicas": [10133, 10118, 10105]}]}
[INFO] Executing partition reassignment 17/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 7, "replicas": [10116, 10132, 10103]}]}
[INFO] Executing partition reassignment 18/23: {"version": 1, "partitions": [{"topic": "unbound", "partition": 8, "replicas": [10116, 10133, 10104]}]}
[INFO] Executing partition reassignment 19/23: {"version": 1, "partitions": [{"topic": "mycooltopic_errors", "partition": 1, "replicas": [10133, 10117, 10104]}]}
[INFO] Executing partition reassignment 20/23: {"version": 1, "partitions": [{"topic": "mycooltopic_errors", "partition": 2, "replicas": [10118, 10139, 10105]}]}
[INFO] Executing partition reassignment 21/23: {"version": 1, "partitions": [{"topic": "mycooltopic_errors", "partition": 5, "replicas": [10132, 10116, 10103]}]}
[INFO] Executing partition reassignment 22/23: {"version": 1, "partitions": [{"topic": "mycooltopic_errors", "partition": 6, "replicas": [10117, 10103, 10133]}]}
[INFO] Executing partition reassignment 23/23: {"version": 1, "partitions": [{"topic": "mycooltopic_errors", "partition": 7, "replicas": [10116, 10104, 10132]}]}
[INFO] Number of replica elections: 1
[INFO] Executing preferred replica election 1/1