一、CM简介
Cloudera Manager(简称CM)是Cloudera公司开发的一款大数据集群安装部署利器,这款利器具有集群自动化安装、中心化管理、集群监控、报警等功能,使得安装集群从几天的时间缩短在几小时以内,运维人员从数十人降低到几人以内,极大的提高集群管理的效率。
二、前期配置
系统为centos7,安装gnome桌面环境,以下内容需要在所有节点执行。
集群网络配置
手动配置ipv4地址、掩码、网关和DNS地址。关闭ipv6
host文件修改
[root@master ~]# vim /etc/hosts
删除原文件前两行,填写各节点ip地址、host名 ,修改后文件内容如下
192.168.91.36 master
192.168.91.37 slaves1
192.168.91.38 slaves2
192.168.91.39 slaves3
关闭防火墙
[root@master ~]#systemctl disable firewalld
[root@master ~]#systemctl stop firewalld
[root@master ~]#systemctl status firewalld
关闭selinux
修改配置文件
[root@master ~]# vim /etc/selinux/config
将selinux=enforcing改为selinux=disabled,修改后文件相关内容如下
#This file controls the state of SELinux on the system.
#SELINUX= can take one of these three values:
#enforcing - SELinux security policy is enforced.
#permissive - SELinux prints warnings instead of enforcing.
#disabled - No SELinux policy is loaded.
SELINUX=disabled
#SELINUXTYPE= can take one of three two values:
#targeted - Targeted processes are protected,
#minimum - Modification of targeted policy. Only selected processes are protected.
#mls - Multi Level Security protection.
SELINUXTYPE=targeted
环境配置
ssh免密登陆
CDH服务开启与关闭是通过server和agent来完成的,所以这里可以不配置SSH免密登录
以下操作要在所有节点上执行
1)生成公钥和私钥:
#[root@