Run a tablet rebalancing tool in command line

Learn how to use Kudu service keytab while running the Kudu tablet rebalancing tool.

The following instructions are applicable when Kerberos is enabled in the cluster. If Kerberos is not enabled, you need to only run the following command:
sudo -u kudu kudu cluster rebalance,,
  1. Run kinit as Kudu user through keytab.
    $ kinit -kt /var/run/cloudera-scm-agent/process/$(ls -rt /var/run/cloudera-scm-agent/process|grep KUDU|tail -n1)/kudu.keytab kudu/`hostname -f`
  2. Check if kinit ran successfully.
    $ klist
  3. Run the rebalancing tool as the Kudu admin user, specifying all master addresses.
    kudu cluster rebalance,,