文章目录
官方文档: https://www.cloudera.com/documentation/enterprise/6/6.3/topics/installation_reqts.html
一、机器配置
阿里云的主机:
公网IP | 内网IP | 主机名 | 内存 | CPU | 硬盘 | 操作系统 |
---|---|---|---|---|---|---|
39.98.224.169 | 172.26.102.105 | cm.cdh | 8G | 2核 | 50G | CentOS 7.6 |
安装一些基本工具
yum install -y vim wget ntp net-tools
二、配置网络名称
2.1 设置唯一主机名
hostnamectl set-hostname cm.cdh
2.2 设置主机名解析
vim /etc/hosts
添加如下内容
172.26.102.105 cm.cdh
2.3 设置网络主机名
vim /etc/sysconfig/network
添加如下内容
HOSTNAME=cm.cdh
如图
2.4 验证主机网络是否正常
a.查看这两个命令的主机名是否一致
uname -a
hostname
如图
b.检查eth0网卡是否开启
ifconfig
如图
三、关闭防火墙
查看当前防火墙状态
systemctl status firewalld
如图
临时关闭,重启失效
systemctl stop firewalld
永久关闭,重启生效
systemctl disable firewalld
再次查看当前防火墙状态
systemctl status firewalld
四、设置SELinux模式
查看状态 如果是Permissive 或者 Disabled跳过此步(阿里服务器默认关闭)
getenforce
临时关闭,重启失效
setenforce 0
永久关闭,重启生效
vim /etc/selinux/config
SELINUX=enforcing 改成 SELINUX=permissive
五、配置NTP时间同步服务
(阿里服务器默认配置好了,无需改动)
vim /etc/ntp.conf
修改为如下内容
server 0.cn.pool.ntp.org
server 1.cn.pool.ntp.org
server 2.cn.pool.ntp.org
server 3.cn.pool.ntp.org
启动服务
systemctl start ntpd
开机自启
systemctl enable ntpd
将系统时钟同步到NTP服务器
ntpdate -u 0.cn.pool.ntp.org
将硬件时钟与系统时钟同步
hwclock --systohc
查看当前时间
[root@iZ8vb2567465uau7dhr8w8Z ~]# date
Fri Aug 9 16:11:17 CST 2019
六、为Hue安装python2.7
Centos7自带python2.7
python --version
Python 2.7.5
下一篇:准备安装包 https://blog.csdn.net/qq_39680564/article/details/99191318