》 service iptables stop
》chkconfigiptables off
》vi /etc/selinux/config
SELINUX=disabled
》 vi /etc//sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:31:53:F9
TYPE=Ethernet
UUID=adca6150-dbc7-455f-baee-16331e39677c
ONBOOT=yes
NM_CONTROLLED=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=192.168.1.113
GATEWAY=192.168.1.1
》vi /etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.1.123 hadoop-5.beifeng.com hadoop-5
>> vi /etc//sysconfig/network
NETWORKING=yes
HOSTNAME=hadoop-5.beifeng.com
>>vi cloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager,Version 5,on RedHat or CentOS 5 x86_64
name=Cloudera Manager
baseurl=https://archive.cloudera.com/cm5/redhat/5/x86_64/cm/5.7.4/
gpgkey =https://archive.cloudera.com/cm5/redhat/5/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 0
(一)CM部分在线安装
master上安装:
cloudera-manager-daemons
cloudera-manager-agent oracle-jdk-1.7
cloudera-manager-installer.bin
>>yum install -y cloudera-manager-daemons-5.7.4-1.cm574.p0.9.el6.x86_64.rpm
>>yum install -y cloudera-manager-agent-5.7.4-1.cm574.p0.9.el6.x86_64.rpm
>>chmod 0777 cloudera-manager-installer.bin
>>yum clean all(记住清空,否则可能下周最新版本)
./cloudera-manager-installer.bin(这里会在线下载除cloudera-manager-daemons核 cloudera-manager-agent及 oracle-jdk-1.7之外的包,因为这三个包较大,所以先提前下载安装)
slave上安装 :
cloudera-manager-agent-5.7.4-1.cm574.p0.9.el6.x86_64.rpm
cloudera-manager-daemons-5.7.4-1.cm574.p0.9.el6.x86_64.rpm
oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
(二)CDH的离线安装
提前把parcel三个文件放到/root/download下:
登录7180端口,设置远程url:https://archive.cloudera.com/cdh5/parcels/5.7.4/ 防止更新到最新版本
(如要代理相应修改parcel目录)