anchor.diff:  }
   ----
   
  -We use the `kafka-reassign-partitions.sh` tool to generate partition assignments.
  +Now we can use the `kafka-reassign-partitions.sh` tool to generate partition assignments.
   It takes the topic list and the broker list as input, and produces the assignment plan in JSON format:
   
   [source,bash]
   ----
  -$ bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --generate --topics-to-move-json-file topics.json --broker-list 0,1,2,3
  +$ bin/kafka-reassign-partitions.sh --zookeeper zkhost:2181 --generate --topics-to-move-json-file topics.json --broker-list 0,1,2,3
   Current partition replica assignment
   
   {"version":1,"partitions":[{"topic":"test_topic","partition":0,"replicas":[2,0]},{"topic":"test_topic","partition":4,"replicas":[0,2]},{"topic":"__consumer_offsets","partition":0,"replicas":[0,3,1]},{"topic":"__consumer_offsets","partition":3,"replicas":[3,2,0]},{"topic":"test_topic","partition":3,"replicas":[2,1]},{"topic":"test_topic","partition":2,"replicas":[1,2]},{"topic":"__consumer_offsets","partition":4,"replicas":[0,1,2]},{"topic":"test_topic","partition":1,"replicas":[0,1]},{"topic":"__consumer_offsets","partition":2,"replicas":[2,1,3]},{"topic":"__consumer_offsets","partition":1,"replicas":[1,0,2]}]}
  
positive.code: Successfully started reassignment of partitions {"version":1,"partitions":[{"topic":"__consumer_offsets","partition":4,"replicas":[0,2,3]},{"topic":"__consumer_offsets","partition":3,"replicas":[3,0,1]},{"topic":"__consumer_offsets","partition":0,"replicas":[0,1,2]},{"topic":"test_topic","partition":4,"replicas":[3,1]},{"topic":"test_topic","partition":3,"replicas":[2,3]},{"topic":"test_topic","partition":2,"replicas":[1,2]},{"topic":"test_topic","partition":0,"replicas":[3,0]},{"topic":"__consumer_offsets","partition":2,"replicas":[2,3,0]},{"topic":"test_topic","partition":1,"replicas":[0,1]},{"topic":"__consumer_offsets","partition":1,"replicas":[1,2,3]}]}
  ----
  
  One the reassignment is Finished, you will partitions got redistributed over the cluster:
  
  image::2016-10-17-Scaling-Kafka/kafka-add-node.svg[Adding a node]
  
  It may take a lot of time to move partitions from one node to another when the partition is big.
  To check the partition reassignment, you can use:
  
  * The `kafka-reassign-partitions.sh` tool with the `--verify` command.
  * The `kafka-topic.sh` tool with the `--describe` command.
  
  ----
  $ bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --verify --reassignment-json-file reassignment.json
  Status of partition reassignment:
  Reassignment of partition [__consumer_offsets,4] completed successfully
  Reassignment of partition [__consumer_offsets,3] completed successfully
  Reassignment of partition [__consumer_offsets,0] completed successfully
  Reassignment of partition [test_topic,4] completed successfully
  Reassignment of partition [test_topic,3] completed successfully
  Reassignment of partition [test_topic,2] completed successfully
  Reassignment of partition [test_topic,0] completed successfully
  Reassignment of partition [__consumer_offsets,2] completed successfully
  Reassignment of partition [test_topic,1] completed successfully
  Reassignment of partition [__consumer_offsets,1] completed successfully
  
  $ bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic test_topic
  Topic:test_topic        PartitionCount:5        ReplicationFactor:2     Configs:
          Topic: test_topic       Partition: 0    Leader: 3       Replicas: 3,0   Isr: 0,3
          Topic: test_topic       Partition: 1    Leader: 0       Replicas: 0,1   Isr: 1,0
  
negative.code: 4. `kafka-reassign-partitions.sh --verify` to check whether the assignment plan is applied
  5. Stop the broker and remove it
  
  As an example, we will remove the broker with id 1.
  
  ----
  $ bin/kafka-reassign-partitions.sh --zookeeper zkhost:2181 --generate --topics-to-move-json-file topics.json --broker-list 0,2,3
  ----
  
  The tool proposes the following reassignement:
  