How to install Ambari or HDP on Linux

Today we will learn how to install Ambari or HDB on Linux(CentOS):

Install Ambari or HDB on Linux

Before installation below are some prerequisite:

  1. Check the Maximum Open File Descriptors

The recommended maximum number of open file descriptors is 10000, or more. To check the current value set for the maximum number of open file descriptors, execute the following shell commands on each host:

 

If the output is not greater than 10000, run the following command to set it to a suitable default:

ulimit -n 10000

 

 

 

2.   Adding hosts to “/etc/hosts” file on every host.

 

3.     Set Up Password-less SSH

 

  1. Stoping the IPtables service.

 

  1.   Disabled selinux

 

6.   How to disabled THP

 

7.   Download the repository 

 

 8.   Install Ambari server  

 

9.   Run the below command for setting up Ambari Server and select the right options as given in the screenshots.

 

10.        To start the Ambari server run the below command :-

 

11.         Once the Ambari server is started on the CLI. You have to start the Ambari GUI on browser.

You need to specify the host name and port number 8080. Check the screenshot for more details.

Eg. IP:8080

Use the username-“admin” & password-“admin” for login.

12.   Click on “Launch install Wizard” to start with the HDP deployment.

13.  You need to provide a name to the cluster.

14.  Select thee right HDP stack. In this case we are going to deploy HDP 2.3.

15.   Install options :

Here, You need to provide the FQDN’s of all the Hosts you want to include in your cluster. Please refer to the screenshot example to complete this step.

In our case the FQDNs provided are :-

Eg. Hostname1.com

Hostname2.com

Hostname3.com

 

 16. You would also need to provide the private ssh key to automatically install the ambari agents on all the Hosts. Command is below-

16.1. To install Ambari agent manually on all the hosts in the cluster.

16.2. Download the Ambari repository file to a directory on your installation host.

16.3. Confirm that the repository is configured by checking the repo list.

 

16.4. Install the Ambari Agent on every host in your cluster.

 

16.5Using a text editor, configure the Ambari Agent by editing the ambari-agent.ini file as shown in the following example

root@node1#vi /etc/ambari-agent/conf/ambari-agent.ini

[server] hostname=<your.ambari.server.hostname>

url_port=8440

secured_url_port=8441

16.6. Start the agent on every host in your cluster.

root@node1#ambari-agent start

17. Confirm Hosts prompts you to confirm that Ambari has located the correct hosts for your cluster and to check those hosts to make sure they have the correct directories, packages, and processes required to continue the install.

  • Choose services :-

In this step we need to choose all the services which we need to install in the cluster.

18.  Assign Masters and Slaves :-

In this step we need to specify the Hosts on which we want to install the Master and Slave services.

Review :-

We need to finally review all the selection we have made and click on deploy.

19.  After that customize service window will appear.

If you have hive service install we need to create data base. Create data base name , id and password. Follow below steps to create data base for hive

 

(Note- on customize service window click on hive tab and enter all the privileges which you will create. If you have selected oozie service follow same process to create data base.)

20. Create the JDBC connection by following below command. Note- path for this directory postgresql-9.3-1101-jdbc4.jar will be different for your server.

 

21.  Add service winzard window will appears. Just click on deploy and continue.

22. Install, Start and Test :-

Click on next once all the installation on the all the Hosts is complete.

23. Complete :-

If you get any type of  error post your comment here and if you have ambari-blog

other requirement related to linux or hadoop comment below