CDH6.x学习笔记(一)部署前准备


官方文档: https://www.cloudera.com/documentation/enterprise/6/6.3/topics/installation_reqts.html

一、机器配置

阿里云的主机:

公网IP内网IP主机名内存CPU硬盘操作系统
39.98.224.169172.26.102.105cm.cdh8G2核50GCentOS 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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值