Installing the Ambari Server
You must complete the following steps in the following sub-sections to install Ambari. The ambari repositories can be accessed via the URLs from Accessing Acceldata Repositories. For any doubts, reach out to the Acceldata Support team.
Follow the instructions in the section for the operating system that runs your installation host.
RHEL 8/9/RL 8/9
Ubuntu 20/22
Use a command line editor to perform each instruction.
RHEL 8/9/RL 8/9
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.
- Add
ambari.repo
file with following content on all your cluster nodes.
File name: vi /etc/yum.repos.d/ambari.repo
#VERSION_NUMBER=2.7.9.2-1
[ambari-2.7.9.2]
async = 1
baseurl = https://mirror.odp.acceldata.dev/ODP/rhel/Ambari-2.7.9.2-1/
gpgcheck = 0
name = ambari Version - ambari-2.7.9.2-1
Do not modify the ambari.repo
file name. This file is expected to be available on the Ambari Server host during the Agent registration.
yum repolist ambari
repo id repo name status
ambari ambari Version - ambari-2.7.9.2-1 enabled
- Confirm that the repository is configured by checking the repo list.
yum repolist
- You must 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.7.9.1-1 ambari Version - ambari-2.7.9.2-1 12 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,387
repolist: 30,578
- Next, install the Ambari bits using
yum install ambari-server
on your server node. - Enter
y
when prompted to confirm transaction and dependency checks.
When deploying a cluster having limited or no Internet access, you must provide access to the bits using an alternative method.
Ambari Server by default uses an embedded PostgreSQL database. When you install the Ambari Server, the PostgreSQL packages and dependencies must be available for installation. These packages are typically available as part of your Operating System repositories. Confirm that you have the appropriate repositories available for the postgresql-server packages.
Ubuntu 20/22
On a server host that has the Internet access, use a command line editor to perform the following:
Steps
- Add
ambari.list
file with following content on all your cluster nodes.
File name: sudo vi /etc/apt/sources.list.d/ambari.list
deb <Repo_Base_URL> ODP main
deb <ODP-UTILS main URL> ODP-UTILS main
Example for Ubuntu 20:
deb https://mirror.odp.acceldata.dev/ODP/ubuntu20/Ambari-2.7.9.2-1/ ODP main
deb https://mirror.odp.acceldata.dev/ODP/ubuntu20/Ambari-2.7.9.2-1/ ODP-UTILS main
- After adding
ambari.list
, add the key.
wget -qO - <aws-bucket-repo-key-or-internal-serval-key> | sudo apt-key add -
sudo apt update
For example:
wget -qO - https://mirror.odp.acceldata.dev/ODP/ubuntu20/3.3.6.2-1/my_public.key | sudo apt-key add -
sudo apt update
You can get this my_public.key
from Accessing Acceldata Repositories.
- Next, install the Ambari bits on node that you want to make as Ambari-server.
apt-get install ambari-server
- Confirm that Ambari packages downloaded successfully by checking the package name list.
apt-get install ambari-server
When deploying a cluster having limited or no Internet access, you must provide access to the bits using an alternative method.