INSTALL AND CONFIGURE AMBARI SERVER WITH MYSQL IN CENTOS/RHEL 7/6
Apache Ambari is an open-source administration tool deploy to manage Hadoop cluster and responsible to monitor running applications and their status. In other words, Apache Ambari is an open source web-based management tool that manages, monitors and provisions the health of Hadoop clusters. It provides a highly interactive dashboard which allows the administrators to visualize the progress and status of every application running over the Hadoop cluster. Its flexible and scalable user-interface permits a scope of tools, for example, Yarn, Hive, etc, to be installed on the cluster and administers their performances in an easy to use.
Before start installation of Apache Ambari add the system hostname in the host’s file.
Set secure Linux to permissive using selinux configuration file.
Change the parameters.
Reboot the server or execute the mention command.
If on server Linux firewall is enabled, so you need to stop it and need to configure it.
MySQL is an open-source relational database management system (RDBMS) based on Structured Query Language (SQL). Use-mention steps to install the MySQL.
Now start MySQL service and enable to start on boot using below commands.
Set MySQL Root Password
After installing MySQL database we need to create database and users. Use-mention steps you create the database and user.
To connect MySQL with Apache Ambari we need to install the MySQL connector.
Apache Ambari repository provided by hortonworks. Run the following commands to download the repository.
Install the Ambari bits. This also installs the default PostgreSQL Ambari database.
Before starting the Ambari Server, you must set up the Ambari Server. Setup configures Ambari to talk to the Ambari database, installs the JDK and allows you to customize the user account the Ambari Server daemon will run as. Execute the mentioned command and follow the instruction.
After Ambari server setup we need to import the metadata to the Ambari server database. Use-mention command to import metadata.
Note: Sometime while importing metadata you can get mention error.
Use mention steps to resolve the error.
Now you are good to start the Ambari server. You can use mention command to start the Ambari service.
You can access
the Ambari Server using your
Default username and password is admin/admin.