Kudu can use the rebalancing tool to migrate data.
Note:You can disconnect only one tserver at a time. To disconnect multiple ones, repeat the following steps.
/usr/local/service/kudu/bin/kudu cluster ksck 10.0.1.29:7051,10.0.1.16:7051,10.0.1.36:7051
Run the ksck command as described in step 1 to get the uid
of the disconnected nodes.
Take the fb9afb1b2989456cac5800bf6990dfea
node as an example.
Switch the fb9afb1b2989456cac5800bf6990dfea
node to the maintenance mode.
/usr/local/service/kudu/bin/kudu tserver state enter_maintenance 10.0.1.29:7051,10.0.1.16:7051,10.0.1.36:7051 fb9afb1b2989456cac5800bf6990dfea
/usr/local/service/kudu/bin/kudu cluster rebalance 10.0.1.29:7051,10.0.1.16:7051,10.0.1.36:7051 --ignored_tservers fb9afb1b2989456cac5800bf6990dfea --move_replicas_from_ignored_tservers
After the command is executed, run the ksck command again to check whether the status is OK before proceeding.
10.0.1.45
on the fb9afb1b2989456cac5800bf6990dfea
node. Note that at this point, if you run the ksck command, you will see that the cluster is unhealthy, and you need to restart the tmasters.
Was this page helpful?