Installing Ambari
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 Acceldata Support team.
Follow the instructions in the section for the operating system that runs your installation host.
RHEL/CentOS 7
RHEL 8/RL 8
Ubuntu 20/22
Use a command line editor to perform each instruction.
RHEL/CentOS 7/RHEL 8/RL 8
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.rep
#VERSION_NUMBER=2.7.8.2-2
[ambari-2.7.8.2]
async = 1
baseurl = https://mirror.odp.acceldata.dev/ODP/rhel/Ambari-2.7.8.2-2/
gpgcheck = 0
name = ambari Version - ambari-2.7.8.2-2
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.7.8.2-3 ambari Version - ambari-2.7.8.2-2 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 should 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 you have the appropriate repositories available for the postgresql-server packages.
Ubuntu 20/22
On a server host that has 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 18:
deb https://mirror.odp.acceldata.dev/ODP/ubuntu18/Ambari-2.7.8.2-2/ ODP main
deb https://mirror.odp.acceldata.dev/ODP/ubuntu18/Ambari-2.7.8.2-2/ ODP-UTILS main
Example for Ubuntu 20:
deb https://mirror.odp.acceldata.dev/ODP/ubuntu20/Ambari-2.7.8.2-2/ ODP main
deb https://mirror.odp.acceldata.dev/ODP/ubuntu20/Ambari-2.7.8.2-2/ ODP-UTILS main
- After adding
ambari.list
, add the key.
The public GPG key must be added to all hosts in the cluster, including the Ambari Server and any new nodes that are added. This ensures the authenticity of Debian packages during installation or updates. This step ensures that all hosts in the cluster can verify the integrity and authenticity of the packages being installed, preventing tampered or unauthorized software from being used.
wget -qO - <mirror-repo/ODP/<Ubuntu20/22>/Ambari-2.x.x/my_public.key> | sudo apt-key add -
wget -qO - <mirror-repo/ODP/<Ubuntu20/22>/<ODP-version>/my_public.key> | sudo apt-key add -
sudo apt update
For example:
wget -qO - https://mirror.odp.acceldata.dev/ODP/ubuntu20/3.2.3.3-2/my_public.key | sudo apt-key
add -
wget -qO - https://mirror.odp.acceldata.dev/ODP/ubuntu20/Ambari-2.7.8.2-2/ | sudo apt-key
add -
sudo apt update
You can get this my_public.key
from ODP Repositories and Ambari 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 list ambari-server* [For confirmation of ambari configured]