We are planning to expand cluster from 2 node to 8 node. The partition reassignment tool has the option to move topic or partition.
For re-distribution of partitions I am planning to follow the below steps.
Irrespective of number of node additions,If I give all the topics in the topic-to-move.json and all the brokers in the below command then it will give equal distribution of partition among nodes correct ?
bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --topics-to-move-json-file topics-to-move.json --broker-list "0,1,2,3,4,5,6,7" --generate
After this I am planning to apply the json
--execute --reassignment-json-file generated-json file
Will this cause any problem ?
This step seems to be more general but why it is not documented this way?