Search This Blog

Ambari server installation including Java and Postgres

In this article we will learn how to install Ambari-server. Ambari server depends on Java and RDBMS system. By default, Ambari server installs Postgres RDBMS system to store Ambari data.
We will also see how to install  Java and Postgres and how to configure Postgres for Ambari.

1)  Create Ambari repo

Create an Ambari repository by downloading ambari.repo file.

Command:

wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.6.0.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

This command works on CentOS/RHEL/Oracle Linux.

The picture below shows how to create Ambari repo in CentOS/RHEL/Linux.




2)  Install ambari-server package and  also Postgres  package

After first step , We will see a new repo ambari-2.6.0.0 created .


We will install ambari-server package using yum install command. This command will also resolve dependency Postgres and will also install it.

The picture below shows Ambari-server installed and also it's dependency Postgres.





3)  Ambari-server setup

Once ambari-server is installed , If we type ambari-server, it will show command's options that confirms Ambari-server is successfully installed.









After ambari-server installation using yum command, We need to setup ambari-server to configure Java and Postgres.

We use ambari-server setup command for the same and this command also configures prerequisites for Ambari and Hadoop.

Disable SELinux

SELinux needs to be disabled for Hadoop installation. Ambari server checks whether it is disabled or not. If it is not disabled , setup command will disable SELinux with user's confirmation.




Customize user account

By default ambari-server runs with root user, If we want to change the root user to some other user we can change. It is recommended to use root user.


JDK version

Choose Jdk version to be installed. Ambari setup will shows us all available JDK versions from Oracle and also gives custom JDK option to install other JDK like OpenJDK. Apart from JDK , Ambari server and Hadoop also require JCE. Amabri setup command will also install it.

It is better to choose latest JDK version from Oracle.




Accept the Oracle binary code license agreement.

Before we install Oracle JDK , We need to accept the Oracle binary code license agreement.



Advanced DB configs

We can also configure Postgres as per our wish.  We can configure users and schema as per our wish. It is ok to go with default database configuration. We can just say no(n) in this step.




Ambari server setup complete.

After all these steps ,  We can see ambari-server is successfully setup.

The picture below shows ambari-server is setup successfully.




4) Start the ambari-server .

Now we can start the Ambari-server using ambari-server start command.

The picture below shows ambari-server is successfully started and also shows amabri-server is listening on 8080 port number. 8080 is the default port number for Ambari-server.




5) Ambari server login screen from Browser

We can use ip address where Amabri-server installed and port number to access the ambari GUI from browser.

The picture below shows ambari GUI from browser.



Default login credentials for Ambari are admin/admin.


6) Install HDP by clicking Launch install wizard.

We can login into Ambari GUI using default login credentials admin/admin.

Once we login into Ambari , We are ready to create a HDP (Hortonworks Data Platform ) cluster using Ambari.

We can click on Launch Install Wizard to create the HDP cluster.

The picture below shows Launch Install Wizard button.



In next article we will see how to install HDP (Hortonworks Data Platform) using Ambari. Let me know in the comments if you have any questions about Ambari server installation.