Saturday, May 19, 2018


sudo yum update
sudo yum remove snappy -y
sudo yum install snappy-devel -y
sudo yum update -y
sudo yum install wget -y

sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum update -y
sudo yum install mysql-server -y
sudo systemctl start mysqld
sudo mysql_secure_installation
create user hive;
create database hive;
grant all on hive.* to 'hive'@'ip-172-31-16-83.ap-south-1.compute.internal' identified by 'hadoop';
flush privileges;
download mysql connector from website place 
//pls do it later after 50 line
sudo cp mysql*.jar /var/lib/ambari-server/resources


ambari-server setup --jdbc-db=mysql --jdbc-driver=/var/lib/ambari-server/resources/mysql-connector-java.jar


//sercurity issue disable password

sudo yum install ntp -y
sudo yum install iptables-services -y
sudo chkconfig ntpd on
sudo chkconfig iptables off

sudo /sbin/service iptables stop
sudo service ntpd start

mv aryan.pem ./.ssh/id_rsa

sudo su

vi /etc/sysconfig/selinux
//change SELINUX=disabled

cd /etc/yum.repos.d/

yum repolist

/// now take image if you want to create multi node cluster. 

sudo yum install ambari-server -y

sudo ambari-server setup
choose hive mysql exist databses 

sudo ambari-server setup
copy mysql jar to 
 sudo cp mysql-connector-java.jar /var/lib/ambari-server/resources

ambari-server start


most of the cases you will get libtirpc-devel error
if you want to uninstall

ambari-server stop
ambari-server reset
ambari-agent stop
yum erase ambari-server -y
rm -rf /var/lib/ambari-server
rm -rf /var/run/ambari-server
rm -rf /usr/lib/ambari-server