OPERATING SYSTEMSOS Linux

Howto install Ambari on Ubuntu

Howto install Ambari on Ubuntu

Amazon:
▶ JBL Quantum 400 Over-Ear- Gaming Headset – https://amzn.to/3abqj02

▶ Check out my list of recommended books on Hadoop/Spark/Storm/DataScience/Kafka/Cassandra/Mongodb — http://bit.ly/2FaP1MF
▶ Check out my selection of books on Python/DeepLearning/MachineLearning/TensorFlow http://bit.ly/2LvtxhX *****

▶About this Video:
The video covers step-by-steps of installing, configuing and Validating Apache Ambari on Ubuntu. These steps have been validated on Ubuntu 16 and Ubuntu 18.04. Below are the steps and urls for Ambari repository.

Step 1.Setup environment::
Switch to “root” user
$ sudo su root

Step 2.Install and setup SSH server::
$ apt-get install ssh
$ vi /etc/ssh/sshd_config
In sshd_config file set PermitRootLogin to Yes. Save and exit. Restart ssh service.
service ssh restart

Step 3: Install JDK::
$ add-apt-repository ppa:webupd8team/java
$ apt-get update
$ apt-get install oracle-java8-installer

Step 4: Verify/Check Java installation::
$ apt-get install oracle-java8-set-default
$ java -version

Step 5: Add JAVA_HOME::
cat /etc/environment EOL
JAVA_HOME=/uer/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL

Also make sure to add JAVA_HOME to command line so that Ambari installation will be able to use it.
Step 6 :Change hostname and setup FQDN:
$ cat /etc/hostname
$ vi /etc/hostname
$ vi /etc/hosts

After the hosts file is edited, set up the machine hostname:

$ hostname your FQDN name

In our case that would be:
$ hostname yoda-ambarisvr.com

Check your hostnames using:

$ hostname
$ hostname -f

Hostname now should match to entered names in “hostname” and “hosts” files.
Step 7: Generate SSH keys::
$ ssh-keygen
$ sudo cat id_rsa.pub authorized_keys

Try to ssh with the newly created keys:

$ ssh root@yoda-ambarisvr.com

Step 8: Disable firewall::
Check firewall status:
$ sudo ufw status

If the firewall is active, turn it off:

$ sudo ufw disable

Step 9: Stop SELinux::
$ apparmor_status
$ /etc/init.d/apparmor stop

Step 10: Add Ambari Repository::
ubuntu18:
$ wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.6.2.0/ambari.list
ubuntu16:
$ wget -O /etc/apt/sources.list.d/ambari.list http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.6.2.0/ambari.list

$ apt-key adv –recv-keys –keyserver keyserver.ubuntu.com B9733A7A07513CAD
if you get GPG error, and signatures as invalid, do the below
manually update “/etc/apt/sources.list.d/ambari.list
and add [trusted=yes] in the second line after the word “deb”

Step 11:
$ apt-get update
$ apt-cache showpkg ambari-server
$ apt-cache showpkg ambari-agent
$ apt-cache showpkg ambari-metrics-assembly

Step 12: Install Ambari, Start, Verify and Launch the Ambari UI::
$ apt-get install ambari-server (size will be 758MB , will download postgresql, Python, curl etc)
$ ambari-server setup
$ ambari-server start
$ ambari-server status

source

ubuntu

Leave a Reply

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