CDH 5.16.2 部署

Cloudera 官网

  • 本次我们部署环境为 CDH 5.16.2
  • 本次部署使用的是三台 2 核 16 G 机器

1. 部署的方式

1.1 bin在线部署
  • 优点:通过 shell 脚本一键部署,比较方便。
  • 缺点:需要互联网在线下载安装包,如果网络抖动则不会成功。
1.2 rpm 部署
  • 优点:官网推荐的,部署还算比较简单。
  • 缺点:部署 Server、Agent rpm 时候需要网络下载依赖包。
1.3 tar 部署
  • 真正的离线部署,本次部署就是采用 tar 部署。

2. 部署前置条件

CDH 5X 部署的硬件条件

  • 本次部署采用的是阿里云 Centos 7.2 的操作系统

3. 部署初始化集群

  • 所有的机器都需要执行,把内网 IP 加入到 hosts 文件里面
[root@bigdata001 ~]# echo "172.22.95.62 bigdata001">> /etc/hosts
[root@bigdata001 ~]# echo "172.22.95.63 bigdata002">> /etc/hosts
[root@bigdata001 ~]# echo "172.22.95.64 bigdata003">> /etc/hosts
  • 关闭防火墙
[root@bigdata001 ~]# systemctl stop firewalld
[root@bigdata001 ~]# systemctl disable firewalld
  • 关闭 selinux
[root@bigdata001 ~]# vim /etc/selinux/config
SELINUX=disabled
  • 时区同步(如果使用阿里云机器,可以不用做)
[root@bigdata001 ~]# timedatectl set-timezone Asia/Shanghai
  • 时钟同步(如果使用阿里云机器,可以不用做)
  • 所有机器都需要安装
[root@bigdata001 ~]# yum install -y ntp
  • 选取第一台机器作为主机器
  • 下面只有第一台机器需要执行
[root@bigdata001 ~]# vim /etc/ntp.conf
#time
server 0.asia.pool.ntp.org
server 1.asia.pool.ntp.org
server 2.asia.pool.ntp.org
server 3.asia.pool.ntp.org
#当外部时间不可⽤时,可使⽤本地硬件时间
server 127.127.1.0 iburst local clock
#允许哪些⽹段的机器来同步时间
restrict 172.22.95.0 mask 255.255.255.0 nomodify notrap
  • 第一台机器启动 ntp 服务

[root@bigdata001 ~]# systemctl start ntpd
[root@bigdata001 ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-02-10 12:15:22 CST; 6min ago
 Main PID: 9479 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─9479 /usr/sbin/ntpd -u ntp:ntp -g

Feb 10 12:15:22 bigdata001 systemd[1]: Starting Network Time Service...
Feb 10 12:15:22 bigdata001 ntpd[9479]: proto: precision = 0.080 usec
Feb 10 12:15:22 bigdata001 ntpd[9479]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Feb 10 12:15:22 bigdata001 systemd[1]: Started Network Time Service.

[root@bigdata001 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 LOCAL(0)        .LOCL.          10 l  411   64  100    0.000    0.000   0.000
+120.25.115.20   10.137.53.7      2 u   12   64  177   24.430  1081.30   8.310
 10.143.33.49    .INIT.          16 u    - 1024    0    0.000    0.000   0.000
+100.100.3.1     10.137.55.181    2 u   43   64  377    1.482  1081.81   6.647
+100.100.3.2     10.137.55.181    2 u   43   64  377    1.332  1081.10   7.352
+100.100.3.3     10.137.55.181    2 u   38   64  377    1.470  1080.94   7.428
+203.107.6.88    10.137.38.86     2 u   38   64  377   16.084  1081.27   6.672
 10.143.33.50    .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 10.143.33.51    .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 10.143.0.44     .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 10.143.0.45     .INIT.          16 u    - 1024    0    0.000    0.000   0.000
 10.143.0.46     .INIT.          16 u    - 1024    0    0.000    0.000   0.000
+100.100.5.1     10.137.55.181    2 u   29   64  377    1.545  1081.31   7.467
+100.100.5.2     10.137.55.181    2 u   35   64  377    1.819  1082.29   6.611
*100.10
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值