Cloudera CDH 6.3.x 설치 [1부]
새롭게 올라온 클라우데라의 CDH 6 버전을 설치하는 법을 기록하려고 합니다.
총 3부로 나눠져있습니다.
▶ 설치하는 노드의 환경 세팅
총 3부로 나눠져있습니다.
▶ 설치하는 노드의 환경 세팅
● CentOS 7.6
● 메모리 16GB
● 모든 root 패스워드 같음
▶ 환경 세팅
1. 고정 IP 설정
# vi /etc/sysconfig/network-scripts/ifcfg-xxx
● 인터넷 연결확인
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=52 time=36.7 ms
2. hostname 설정
# hostnamectl set-hostname <호스트명>
3. hosts 설정
# vi /etc/hosts
192.168.0.100 sys01 MANAGER
192.168.0.101 sys02
192.168.0.102 sys03
192.168.0.103 sys04
4. 방화벽 내리기
# systemctl stop firewalld
# systemctl disable firewalld
5. selinux 해제
# vi /etc/sysconfig/selinux
- SELINUX=disabled
변경
6. 재부팅
# reboot
7. yum 업데이트
# yum update -y
8. NTP 서버 설정
# yum install ntp
# vi /etc/ntp.conf
- 매니저 노드의 경우
|
<주석처리>
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
<추가 입력>
server 127.127.1.0 # 로컬 시간
fudge 127.127.1.0 stratum 0
|
- 나머지 노드 경우
|
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
<추가 입력>
server MANAGER # MANAGER 장비의 시간과 동기화
|
# sudo systemctl enable ntpd
# sudo systemctl start ntpd
9. NTP 서버 확인
# ntpq -p
- 매니저 노드인 경우
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 0 l 29 64 377 0.000 0.000 0.000
- 나머지 노드
remote refid st t when poll reach delay offset jitter
==============================================================================
*sys01 .LOCL. 1 u 576 1024 377 0.454 -0.490 0.634
10. 시간 동기화를 위해 30초마다 MANAGER 노드의 시간과 동기화
# crontab -e
30 * * * * /usr/sbin/ntpdate -u MANAGER && /sbin/hwclock -w
댓글
댓글 쓰기