ambari(암바리) 로 hadoop echo system 설치



서버 4대 생성

root 계정으로

각서버에
yum upgrade -y

각서버에
vi /etc/sysconfig/selinux
selinux=disable

yum install ntp -y

systemctl start ntpd
systemctl enable ntpd

systemctl stop firewalld
systemctl disable firewalld

각서버에 /etc/hosts 파일 수정

10.0.1.11 hadoop01.jung0
10.0.1.12 hadoop02.jung0
10.0.1.13 hadoop03.jung0
10.0.1.14 hadoop04.jung0


hadoop01서버에

암바리 리포 설치
wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

jdbc 설치
mkdir /usr/share/java

cd /usr/share/java

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz

tar zxvf *.gz

mv ./my*/*.jar ./


hadoop02서버에 hive 및 oozie 메타 디비 설치

yum install mariadb-server.x86_64

systemctl start mariadb
systemctl enable mariadb

mysqladmin -u root password 'xxxxxxx'

mysql -u root -p

create database hive;
create database oozie;

create user 'hive'@'%' identified by 'xxxxxxx';
grant all on *.* to 'hive'@'hadoop02' identified by 'xxxxxxx';
create user 'oozie'@'%' identified by 'xxxxxxx';
grant all on *.* to 'oozie'@'hadoop02' identified by 'xxxxxxx';
flush privileges;


root 계정 (암바리 운영 계정)

ssh-keygen -t rsa
엔터
엔터
엔터

ssh-copy-id -i jung0@hadoop01
ssh-copy-id -i jung0@hadoop02
ssh-copy-id -i jung0@hadoop03
ssh-copy-id -i jung0@hadoop04




hadoop01에서

root 계정

암바리 설치
yum install ambari-server.x86_64 -y

암바리 설정
ambari-server setup

Customize user account for ambari-server daemon [y/n] (n)?y
jung0
jdk (1번) y
gpl y
db n

ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java-5.1.46.jar

ambari-server start

웨브라우저로
hadoop01:8080   포트로 호스트명으로 접속
pc의 hosts 파일 수정 필요


admin/admin 으로 접속

설치시 private key는
jung0 계정
cd ~/.ssh
cat ./id_rsa
복사해서 붙혀 넣기
SSH User Account 는 jung0으로 변경
=========

HDP-2.6
http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.5.0

HDP-2.6-GPL
http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.5.0

HDP-UTILS-1.1.0.22
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7

댓글

이 블로그의 인기 게시물

LSF (GPU 스케쥴링) 명령어 사용법

CentOS 7 리부팅 없이 새 디스크 인식 (find a new disk without reboot)

python에서 hive 사용