Apache Ambari helps in management, monitoring, provisioning of Hadoop cluster. Here is how to install Apache Ambari on Ubuntu 16.04 to manage Hadoop cluster. Ambari Server uses an embedded PostgreSQL database by default. When we install the Ambari Server, PostgreSQL packages and dependencies must be available for install. We are showing example with repo from Hortonworks for many reasons, one of them is their documentation to fix any issue in future.
How To Install Apache Ambari on Ubuntu 16.04 to Manage Hadoop Cluster
Installation and initial setup of Apache Ambari is very easy. SSH to your server and become
root, add Ambari repository file to
wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/22.214.171.124/ambari.list
Then add the key :
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
Then run update :
If we run these below commands, we will see the viable packages :
apt-cache showpkg ambari-server
apt-cache showpkg ambari-agent
apt-cache showpkg ambari-metrics-assembly
Now we will install the Ambari server which will also install the above said default PostgreSQL Ambari database :
apt-get install ambari-server
Next part is running the command to set up the Ambari Server :
The command will configure Ambari to connectto the Ambari database, install the JDK, give option to configure user account the Ambari Server daemon will use, run. Ambari Server will run as root. You possibly need to If you have temporarily disable iptables. Thereafter you’ll get option to select a JDK version to download. Ambari Server setup downloads and installs Oracle JDK 1.8 and the accompanying related files. Accept the Oracle JDK license,
select n at advanced database configuration to use the default, embedded PostgreSQL database for Ambari.
Default PostgreSQL database name is ambari, user name and password are ambari and bigdata. Otherwise, to use an existing PostgreSQL, MySQL/MariaDB or Oracle database with Ambari, select y.
At the end you’ll get options configure remote database connection properties, you’ll choose yes.
Follow the Author of this article :