tencent cloud


Kudu Data Migration Guide

Last updated: 2022-05-16 12:52:26

    Kudu can use the rebalancing tool to migrate data.


    You can disconnect only one tserver at a time. To disconnect multiple ones, repeat the following steps.

    Kudu Migration Based on Rebalancing Tool

    1. Make sure that the cluster status is OK.
      /usr/local/service/kudu/bin/kudu cluster ksck,,

    1. Run the ksck command as described in step 1 to get the uid of the disconnected nodes.

      Take the fb9afb1b2989456cac5800bf6990dfea node as an example.

    2. Switch the fb9afb1b2989456cac5800bf6990dfea node to the maintenance mode.

      /usr/local/service/kudu/bin/kudu tserver state enter_maintenance,, fb9afb1b2989456cac5800bf6990dfea
    1. Run the following rebalancing command.
      /usr/local/service/kudu/bin/kudu cluster rebalance,, --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.

    1. Suspend the tserver process at 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.
    2. Restart the masters in the EMR console one by one (rolling restart in the console is not recommended). Then, run the ksck command to check whether the cluster is healthy.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support