sudo yum update
sudo yum install ftp://mirror.switch.ch/pool/4/ mirror/centos/7.4.1708/os/x86_ 64/Packages/libtirpc-devel-0. 2.4-0.10.el7.x86_64.rpm -y
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
mysql-connector-java.jar
ambari-server setup --jdbc-db=mysql --jdbc-driver=/var/lib/ambari- server/resources/mysql- connector-java.jar
ip-172-31-19-91.ap-south-1. compute.internal
//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/
wget -nv http://public-repo-1. hortonworks.com/ambari/ centos7/2.x/updates/2.6.1.5/ ambari.repo -O /etc/yum.repos.d/ambari.repo
yum repolist
/// now take image if you want to create multi node cluster.
sudo yum install ambari-server -y
or
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
admin
admin
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
No comments:
Post a Comment