一、说明
操作系统:CentOS 6
JDK版本:1.7.0_80
所需安装包及版本说明:
CDH-5.4.0-1.cdh5.4.0.p0.27-el6.parcel
CDH-5.4.0-1.cdh5.4.0.p0.27-el6.parcel.sha
manifest.json
cloudera-manager-el6-cm5.4.3_x86_64.tar.gz
Cloudera Manager下载目录
http://www.cloudera.com/downloads/manager/5-4-3.html
CDH下载目录
http://archive.cloudera.com/cdh5/parcels/5.4.0/
CHD5相关的Parcel包放到主节点的/opt/cloudera/parcel-repo/目录中
CDH-5.1.3-1.cdh5.1.3.p0.12-el6.parcel.sha1重命名为CDH-5.1.3-1.cdh5.1.3.p0.12-el6.parcel.sha,这点必须注意,否则,系统会重新下载CDH-5.1.3-1.cdh5.1.3.p0.12-el6.parcel文件
本文采用离线安装方式,在线安装方式请参照官方文档。
二、系统环境搭建
1、网络配置(所有节点)
vi /etc/sysconfig/network 修改hostname:
通过 service network restart 重启网络服务生效
vi /etc/hosts ,修改ip与主机名的对应关系
2、SSH免密码登录
主节点执行:
ssh-keygen -t dsa -P ‘’ -f ~/.ssh/id_dsa
生成无密码密钥对
拷贝公钥到其他节点,执行
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
测试:主节点ssh其他节点……
3、关闭防火墙
临时关闭:
service iptables stop
重启后生效:
chkconfig iptables off
4、关闭SELINUX
临时关闭:
setenforce 0
修改配置文件/etc/selinux/config(重启生效):
将SELINUX=enforcing改为SELINUX=disabled
查看SELINUX状态:
1、/usr/sbin/sestatus –v
SELinux status: enabled(enabled:开启;disabled:关闭)
2、使用命令:getenforce
5、安装JDK
摘自官网:
The Oracle JDK installer is available both as an RPM-based installer for RPM-based systems, and as a binary installer for other systems.
CDH 5.4.x is supported with the versions shown in the following table:
Minimum Supported Version Recommended Version Exceptions
1.7.0_55 1.7.0_67 or JDK1.7_75 None
1.8.0_40 1.8.0_40 or higher None
本文采用RPM包安装…….执行:
rpm -ivh jdk-7u80-linux-x64.rpm
配置环境变量,修改/etc/profile:
export JAVA_HOME=/usr/java/jdk1.7.0_80
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVA