1. Download the Ambari Repository

Follow the instructions in the section for the operating system that runs your installation host.

Use a command line editor to perform each instruction.

RHEL/CentOS/Oracle Linux 6

On a server host that has Internet access, use a command line editor to perform the following steps:

  1. Log in to your host as root.

  2. Download the Ambari repository file to a directory on your installation host.

    wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.2/ambari.repo -O /etc/yum.repos.d/ambari.repo

    [Important]Important

    Do not modify the ambari.repo file name. This file is expected to be available on the Ambari Server host during Agent registration.

  3. Confirm that the repository is configured by checking the repo list.

    yum repolist

    You should see values similar to the following for Ambari repositories in the list.

    Version values vary, depending on the installation.

    repo id

    repo name

    status

    AMBARI.2.0.2-.x

    Ambari 2.x

    5

    base

    CentOS-6 - Base

    6,518

    extras

    CentOS-6 - Extras

    15

    updates

    CentOS-6 - Updates

    209

  4. Install the Ambari bits. This also installs the default PostgreSQL Ambari database.

    yum install ambari-server

  5. Enter y when prompted to to confirm transaction and dependency checks.

    A successful installation displays output similar to the following:

    Installing : postgresql-libs-8.4.20-1.el6_5.x86_64 1/4

    Installing : postgresql-8.4.20-1.el6_5.x86_64 2/4

    Installing : postgresql-server-8.4.20-1.el6_5.x86_64 3/4

    Installing : ambari-server-2.0.2-147.noarch 4/4

    Verifying : postgresql-server-8.4.20-1.el6_5.x86_64 1/4

    Verifying : postgresql-libs-8.4.20-1.el6_5.x86_64 2/4

    Verifying : ambari-server-2.0.2-147.noarch 3/4

    Verifying : postgresql-8.4.20-1.el6_5.x86_64 4/4

    Installed : ambari-server.noarch 0:1.7.0-135

    Dependency Installed:

    postgresql.x86_64 0:8.4.20-1.el6_5

    postgresql-libs.x86_64 0:8.4.20-1.el6_5

    postgresql-server.x86_64 0:8.4.20-1.el6_5

    Complete!

    [Note]Note

    Accept the warning about trusting the Hortonworks GPG Key. That key will be automatically downloaded and used to validate packages from Hortonworks. You will see the following message:

    Importing GPG key 0x07513CAD: Userid: "Jenkins (HDP Builds) <jenkin@hortonworks.com>" From : http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

SLES 11

On a server host that has Internet access, use a command line editor to perform the following steps:

  1. Log in to your host as root.

  2. Download the Ambari repository file to a directory on your installation host.

    wget -nv http://public-repo-1.hortonworks.com/ambari/suse11/2.x/updates/2.0.2/ambari.repo -O /etc/zypp/repos.d/ambari.repo

    [Important]Important

    Do not modify the ambari.repo file name. This file is expected to be available on the Ambari Server host during Agent registration.

  3. Confirm the downloaded repository is configured by checking the repo list.

    zypper repos

    You should see the Ambari repositories in the list.

    Version values vary, depending on the installation.

    Alias

    Name

    Enabled

    Refresh

    AMBARI.2.0.2-1.x

    Ambari 2.x

    Yes

    No

    http-demeter.uni-regensburg.de-c997c8f9

    SUSE-Linux-Enterprise-Software-Development-Kit-11-SP1 11.1.1-1.57

    Yes

    Yes

    opensuse

    OpenSuse

    Yes

    Yes

  4. Install the Ambari bits. This also installs PostgreSQL.

    zypper install ambari-server

  5. Enter y when prompted to to confirm transaction and dependency checks.

    A successful installation displays output similar to the following:

    Retrieving package postgresql-libs-8.3.5-1.12.x86_64 (1/4), 172.0 KiB (571.0 KiB unpacked)

    Retrieving: postgresql-libs-8.3.5-1.12.x86_64.rpm [done (47.3 KiB/s)]

    Installing: postgresql-libs-8.3.5-1.12 [done]

    Retrieving package postgresql-8.3.5-1.12.x86_64 (2/4), 1.0 MiB (4.2 MiB unpacked)

    Retrieving: postgresql-8.3.5-1.12.x86_64.rpm [done (148.8 KiB/s)]

    Installing: postgresql-8.3.5-1.12 [done]

    Retrieving package postgresql-server-8.3.5-1.12.x86_64 (3/4), 3.0 MiB (12.6 MiB unpacked)

    Retrieving: postgresql-server-8.3.5-1.12.x86_64.rpm [done (452.5 KiB/s)]

    Installing: postgresql-server-8.3.5-1.12 [done]

    Updating etc/sysconfig/postgresql...

    Retrieving package ambari-server-1.7.0-135.noarch (4/4), 99.0 MiB (126.3 MiB unpacked)

    Retrieving: ambari-server-1.7.0-135.noarch.rpm [done (3.0 MiB/s)]

    Installing: ambari-server-1.7.0-135 [done]

    ambari-server 0:off 1:off 2:off 3:on 4:off 5:on 6:off

UBUNTU 12

On a server host that has Internet access, use a command line editor to perform the following steps:

  1. Log in to your host as root.

  2. Download the Ambari repository file to a directory on your installation host.

    wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu12/2.x/updates/2.0.2/ambari.list -O /etc/apt/sources.list.d/ambari.list

    apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

    apt-get update

    [Important]Important

    Do not modify the ambari.list file name. This file is expected to be available on the Ambari Server host during Agent registration.

  3. Confirm that Ambari packages downloaded successfully by checking the package name list.

    apt-cache showpkg ambari-server

    apt-cache showpkg ambari-agent

    apt-cache showpkg ambari-metrics-assembly

    You should see the Ambari packages in the list.

  4. Install the Ambari bits. This also installs PostgreSQL.

    apt-get install ambari-server

RHEL/CentOS/ORACLE Linux 5 (DEPRECATED)

On a server host that has Internet access, use a command line editor to perform the following steps:

  1. Log in to your host as root.

  2. Download the Ambari repository file to a directory on your installation host.

    wget -nv http://public-repo-1.hortonworks.com/ambari/centos5/2.x/updates/2.0.2/ambari.repo -O /etc/yum.repos.d/ambari.repo

    [Important]Important

    Do not modify the ambari.repo file name. This file is expected to be available on the Ambari Server host during Agent registration.

  3. Confirm the repository is configured by checking the repo list.

    yum repolist

    You should see the Ambari repositories in the list.

    AMBARI.2.0.2-1.x | 951 B 00:00

    AMBARI.2.0.2-1.x/primary | 1.6 kB 00:00

    AMBARI.2.0.2-1.x 5/5

    epel | 3.7 kB 00:00

    epel/primary_db | 3.9 MB 00:01

    repo Id

    repo Name

    status

    AMBARI.2.0.2-2.x

    Ambari 2.x

    5

    base

    CentOS-5 - Base

    3,667

    epel

    Extra Packages for Enterprise Linux 5 - x86_64

    7,614

    puppet

    Puppet

    433

    updates

    CentOS-5 - Updates

    118

  4. Install the Ambari bits. This also installs PostgreSQL.

    yum install ambari-server

[Note]Note

When deploying HDP on a cluster having limited or no Internet access, you should provide access to the bits using an alternative method.

For more information about setting up local repositories, see Using a Local Repository.

Ambari Server by default uses an embedded PostgreSQL database. When you install the Ambari Server, the PostgreSQL packages and dependencies must be available for install. These packages are typically available as part of your Operating System repositories. Please confirm you have the appropriate repositories available for the postgresql-server packages.


loading table of contents...