3. Setting up Access

3.1. Debian-based systems

Setting up your Apt Repository

  1. Add repository. Create a new file /etc/apt/sources.list.d/cloudera.list with the following contents, taking care to replace DISTRO with the name of your distribution (find out by running lsb_release -c)

    Stable

    deb http://archive.cloudera.com/debian DISTRO-stable contrib
    deb-src http://archive.cloudera.com/debian DISTRO-stable contrib
    Testing

    deb http://archive.cloudera.com/debian DISTRO-testing contrib
    deb-src http://archive.cloudera.com/debian DISTRO-testing contrib
  2. Add repository key. (optional) Add the Cloudera Public GPG Key to your repository by executing the following command:

    curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -

    This allows you to verify that you are downloading genuine packages.

  3. Update APT package index. Simply run:

    sudo apt-get update
  4. Find and install packages. You may now find and install packages from the Cloudera repository using your favorite APT package manager (e.g apt-get, aptitude, or dselect). For example:

    apt-cache search hadoop
    sudo apt-get install hadoop

3.2. Redhat-based systems

Setting up Yum access

  1. Add the Yum repository of your choice. Download the cloudera-stable.repo or cloudera-testing.repo file and drop it ito your /etc/yum.repos.d/ directory.

  2. Update the Yum package index. Simple run:

    sudo yum update yum
  3. Find and install packages. For example:

    yum search hadoop
    yum install hadoop-0.20