how to install ambari in centos 7 using mysql2 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

how to install ambari in centos 7 using mysql

Hello Techrunnr Reader, this document deals with how to install ambari in centos 7 using mysql.

Apache Ambari is a software project of the Apache Software Foundation. Ambari enables system administrators to provision, manage and monitor a Hadoop cluster, and also to integrate Hadoop with the existing enterprise infrastructure. Ambari was a sub-project of Hadoop but is now a top-level project in its own right.

Here are the steps to install Ambari server in centos 7 using MySQL


* MySQL server installed, if not check here
* Root access to the Centos 7


Step 1: Install Mysql Java connector

yum install mysql-connector-java

Step 2: Add Ambari repository

wget -nv -O /etc/yum.repos.d/ambari.repo

Step 3: Install Ambari-server

yum install ambari-server

By default, Amabari server install PostgreSQL, here we are using MySQL.

Step 4: Setup database for Ambari

mysql -u root -p

create database ambu;

Step 5: Setup Ambari-server


ambari-server setup

Disable Selinux

Add java

configure MySQL.

Step 6: Import metadata to Ambari-server database.

mysql -u root -p ambu < /var/lib/ambari-server/resources/Ambar-DDL-Create_mysql.sql

Step 7: Start Ambari service

/etc/init.d/ambari-server start

Step 8: Login the Ambari-server Web UI to setup cluster and other services
Ambari listens on port number 8080

Step 9: Configure Ambari-server and cluster

NOTE: Default Username and password is “admin”.

Step 10: Enter name for your Cluster.


Step 11:  Select the version.

Step 12:  Register the host 

Here we are using only one host , so add the hostname and root user private key. Then click Next

Step 13: Wait for it to register host, once status changed to success click Next.

Step 14: Select the services needed.

Step 15: Assign the services to the corresponding target hosts.

Step 16: Enter the Password details.

Step 17: Once entered all the required information click Next and proceed with the installation.

Step 18:  Now you can see all the components get installed.

Step 14: Wait for the tasks to get complete.

Step 15: That’s it !! Now you have completed Ambari-Server installation using MySQL Server.

You can see the Dashboard with all the metrics.


© 2018, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply