Get the App
SLTechnology News&Howtos  ›  Servers  › 

Using kafka-reassign-partitions.sh to re-partition topic, ReplicationFactor is changed from 1 to 3

Shulou Source: shulou.com Published: 2022-06-02 06:00:56 11月14日 Update

1. Prepare topics-to-move.json for-- topics-to-move-json-file

2. Prepare output.json for-- reassignment-json-file

3 、

Bin/kafka-reassign-partitions.sh-- zookeeper 127.0.0.1 topics-to-move-json-file topics-to-move.json 2181-- topics-to-move-json-file topics-to-move.json-- broker-list "0meme 1meme 2"-- generate > output.json

Bin/kafka-reassign-partitions.sh-- zookeeper 127.0.0.1 reassignment-json-file output.json-- execute

Tags: Prepare for Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft Redmi MySQL Linux