Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Kafka partitions migration

Shulou Source: shulou.com Published: 2022-06-03 07:40:41 10月04日 Update

Echo'{"topics": [{"topic": "test1"}, {"topic": "test2"}], "version": 1}'> ready-move-topics.json/usr/hdp/current/kafka-broker/bin/kafka-reassign-partitions.sh-- zookeeper agent01.ambari.com:2181,agent02.ambari.com:2181 Server.ambari.com:2181/kafka-- topics-to-move-json-file ready-move-topics.json-- broker-list "1001Power1002"-- generate | sed-ne'/ Proposed partition reassignment configuration/,$p' | grep-v "Proposed partition reassignment configuration" Save the result to the relayout-partitions.json file / usr/hdp/current/kafka-broker/bin/kafka-reassign-partitions.sh-- zookeeper agent01.ambari.com:2181,agent02.ambari.com:2181 Server.ambari.com:2181/kafka-reassignment-json-file relayout-partitions.json-execute/usr/hdp/current/kafka-broker/bin/kafka-reassign-partitions.sh-zookeeper agent01.ambari.com:2181,agent02.ambari.com:2181,server.ambari.com:2181/kafka-reassignment-json-file relayout-partitions.json-verify

Tags: Files result Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Huawei Shulou Technology Redmi