PTABLES 비활성화
서버간 통신을 위해 iptables 비활성화
SSH 설정
master node
ssh 공인키 생성
slave node
root 디렉토리 아래 .ssh
폴더를 생성한뒤 authorized_keys
라는 파일을 만들어 master node의 id_rsa.pub
파일 내용을 붙여넣는다.
AMBARI 설치
기본 설정
slave node에 `authorized_keys` 파일 생성하고, 이 파일에 앞서 생성한 master node의 퍼블릭키 내용을 붙여넣기 한다.
디스크 설정
마운트 자동 등록
JDK 설치
JDK 설치
java rpm 설치파일 다운로드
rpm 파일 설치
.bash_profile 파일 수정
ulimit 설정
오픈 파일 개수 확인 후 높게 설정
NTP 설정
시간 동기화를 위해 ntp 를 설치 및 설정한다.
설치 확인
AMBARI 설치
yum repository 설정
아래 링크를 참고하여 ambari버전과 os타입에 맞는 ambari yum repo 파일을 /etc/yum.repos.d/ambari.repo 경로에 복사
ambari 설치
ambari setup
ambari 구동
postgre sql
postgresql 설치
참고: https://www.postgresql.org/download/linux/redhat/
- version 9.5
- platform centos6
jdbc connector 설정
ambari master
jdbc connector 파일을 받아 설정.
postgre 설치 서버
postgre.conf 설정 변경 (파일위치: /var/lib/pgsql/9.5/data/postgresql.conf
)
pghba.conf 설정 변경 (파일위치: /var/lib/pgsql/9.5/data/pg_hba.conf)
postgre - hive 설정
postgre 실행
- sudo su postgres
- psql -d postgres -U postgres
hive 사용자 생성
- create user hive with password 'password';
hive database 생성
- create database hive;
Ambari cluster 설정
클러스터 생성
로그인 후 나오는 첫 페이지에서 launch install wizard를 실행해 설치 마법사 실행
(그림1)
Get Started
클러스터 이름 설정
(그림2)
이름 : bigdata_mms
Select Version
상관없는 OS 관련 정보는 delete.
repository 주소를 설치한 repository url 로 변경(/etc/yum.repos.d/ambari-hdp-1.repo) 참고
http://bigdata07.mms.com/HDP-2.6-repo-1
http://bigdata07.mms.com/HDP-UTILS-1.1.0.22-repo-1
(그림3)
Install Options
host name 추가
ssh key(ambari master에서 생성한 private key 정보 입력)
(그림4)
host list
bigdata01.mms.com
bigdata02.mms.com
bigdata03.mms.com
bigdata04.mms.com
bigdata05.mms.com
bigdata06.mms.com
bigdata07.mms.com
bigdata08.mms.com
bigdata09.mms.com
bigdata10.mms.com
Confirm Hosts
기도
(그림5)
'spark,kafka,hadoop ecosystems > hotornworks-ambari' 카테고리의 다른 글
ambari host 수동 추가시 필요한 부분 (0) | 2018.11.19 |
---|---|
amabari - ssh 접속 (0) | 2018.11.19 |