Kudu Installation

Follow these steps on each node which will participate in your Kudu cluster.

  1. If you have previously installed the beta IMPALA_KUDU service, make sure you remove it from your cluster before you proceed.
  2. Cloudera recommends installing the Kudu repositories for your operating system. Use the links in the following table to download the appropriate repository installer.
    Kudu Repository and Package Links
    Operating System Repository Package Individual Packages
    RHEL RHEL 6 or RHEL 7 RHEL 6
    Ubuntu Trusty, Xenial Trusty, Xenial
    SLES SLES 12 SLES 12
    Debian Jessie Jessie
    • Install the kudu package, using the appropriate commands for your operating system:
      $ sudo yum install kudu
      $ sudo apt-get install kudu
    • If you need the C++ client development libraries or the Kudu SDK, install kudu-client and kudu-client-devel packages for RHEL, or libkuduclient0 and libkuduclient-dev packages for Ubuntu.
    • Install the kudu-master and kudu-tserver packages, which provide operating system start-up scripts for the Kudu master and tablet servers.
  3. The packages create a kudu-conf entry in the operating system's alternatives database, and they ship the built-in conf.dist alternative. To adjust your configuration, you can either edit the files in /etc/kudu/conf/ directly, or create a new alternative using the operating system utilities. If you create a new alternative, make sure the alternative is the directory pointed to by the /etc/kudu/conf/ symbolic link, and create custom configuration files there. Some parts of the configuration are configured in /etc/default/kudu-master and /etc/default/kudu-tserver files as well. You should include or duplicate these configuration options if you create custom configuration files.

    Review the configuration, including the default WAL and data directory locations, and adjust them according to your requirements.

  4. Start Kudu services using the following commands on the appropriate nodes:
    $ sudo service kudu-master start
    $ sudo service kudu-tserver start
  5. To stop Kudu services, use the following commands:
    $ sudo service kudu-master stop 
    $ sudo service kudu-tserver stop
  6. Configure the Kudu services to start automatically when the server starts, by adding them to the default runlevel.
    $ sudo chkconfig kudu-master on            # RHEL / CentOS 
    $ sudo chkconfig kudu-tserver on           # RHEL / CentOS 
    
    $ sudo update-rc.d kudu-master defaults    # Ubuntu 
    $ sudo update-rc.d kudu-tserver defaults   # Ubuntu