Hortonworks Ambari Installation on Ubuntu 14.04

Hortonworks Installation on Ubuntu 14.04

Hortonworks Data Platform is designed as an Open source platform that facilitates integrating Apache Hadoop with an enterprise’s existing data architectures.


Here I’m using 3 machines.

One Namenode – Master

Two Datanodes – Slave1 & 2


Pre-Installation steps


1. Create a new user in all nodes with sudo permission.

Command to create user

# adduser user


To give sudo privileges to normal users, use below command by changing the user.

#echo “user ALL=(ALL) NOPASSWD: ALL” | sudo tee/etc/sudoers.d/user


2.  Allow SSH for that user (All nodes)


3. Create password-less SSH into that user

Login into master node

# ssh-keygen [Only in master node]

Copy the public key to all nodes using the command

# ssh-copy-id user@x.x.x.x

Change the directory:

# cd /~ssh

Copy private key to authorized_keys:

# cat id_rsa >> authorized_keys

Change permisions: # chmod 600 authorized_keys

# chmod 700 /~.ssh


4. Install ntp:

# apt-get install ntp ntpdate

Edit /etc/ntp.conf according to the timezone

I’m using Asia region for example: Replace the timezone in ntp.conf file by these lines.

        server 1.in.pool.ntp.org

server 1.asia.pool.ntp.org

server 2.asia.pool.ntp.org

To use the specific time zone, go to the link


5. Disable Transparent huge pages (THP)

Install hugepages :

# apt-get install hugepages

Disable pages :

# hugeadm –thp-never

Check whether it is disabled or not using command

# cat /sys/kernel/mm/transparent_hugepage/enabled

output : [never]


6. Edit /etc/hosts by adding all node IP and FQDN

Format: IP FQDN Hostname


7. Verify by giving the command:

# hostname -f

Output should be FQDN


8. Disable firewall

# ufw disable


Installation steps


9. Login to master using user with root permission

10. Download the Ambari repository file for Ubuntu14 to a directory on your installation host.

# wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.1.2/ambari.list -O /etc/apt/sources.list.d/ambari.list

# apt-key adv –recv-keys –keyserver keyserver.ubuntu.com B9733A7A07513CAD

# apt-get update


11. Confirm that Ambari packages downloaded successfully by checking the package name list.

# apt-cache showpkg ambari-server

# apt-cache showpkg ambari-agent

# apt-cache showpkg ambari-metrics-assembly


12. Install Ambari server

# apt-get install ambari-server

13. Setup Ambari server

# ambari-server setup

14. Start Ambari server

# ambari-server start

15. To check status

# ambari-server status

16. Login to Ambari UI using http://masterIP:8080

Default username and password is admin

17. Select the components which are need to be installed as per the requirements.


Post Installation steps


18. Creating users in Ambari:

Go to dashboard ==> Users ==> Create new user

Provide username and password and save.

Add the roles for the created users.

Rules ==> add username based on the user role requirement.



For more information about installation and Hortonworks, click on the link

Leave a Reply