On a server host that has Internet access, use a command line editor to perform the following steps:
Log in to your host as
root
.Download the Ambari repository file to a directory on your installation host.
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
Important Do not modify the
ambari.repo
file name. This file is expected to be available on the Ambari Server host during Agent registration.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.1.0-.x
Ambari 2.x
5
base
CentOS-7 - Base
6,518
extras
CentOS-7 - Extras
15
updates
CentOS-7 - Updates
209
Install the Ambari bits. This also installs the default PostgreSQL Ambari database.
yum install ambari-server
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-3.el6_6.x86_64 1/4 Installing : postgresql-8.4.20-3.el6_6.x86_64 2/4 Installing : postgresql-server-8.4.20-3.el6_6.x86_64 3/4 Installing : ambari-server-2.1.0-1470.x86_64 4/4 Verifying : ambari-server-2.1.0-1470.x86_64 1/4 Verifying : postgresql-8.4.20-3.el6_6.x86_64 2/4 Verifying : postgresql-server-8.4.20-3.el6_6.x86_64 3/4 Verifying : postgresql-libs-8.4.20-3.el6_6.x86_64 4/4 Installed: ambari-server.x86_64 0:2.1.0-1470 Dependency Installed: postgresql.x86_64 0:8.4.20-3.el6_6 postgresql-libs.x86_64 0:8.4.20-3.el6_6 postgresql-server.x86_64 0:8.4.20-3.el6_6
Complete!
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