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

Prerequisites

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

Installation

Step 1: Install Mysql Java connector

yum install mysql-connector-java

Step 2: Add Ambari repository

wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari.repo -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.

#1
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.