1、准备工作

三个节点

192.168.56.110 cdh1

192.168.56.111 cdh2

192.168.56.112 cdh3


关闭所有节点防火墙

service iptables stop

chkconfig iptables off

vi /etc/selinux/config  SELINUX=disabled

cdh1节点安装http服务并启动

yum install httpd

service httpd start

chkconfig httpd on

配置所有节点hosts文件

vi /etc/hosts

192.168.56.110 cdh1

192.168.56.111 cdh2

192.168.56.112 cdh3

192.168.56.110 archive.cloudera.com

2、下载cdh和cm5

wget http://archive-primary.cloudera.com/cm5/repo-as-tarball/5.3.0/cm5.3.0-centos5.tar.gz
wget http://archive-primary.cloudera.com/cdh5/repo-as-tarball/5.3.0/cdh5.3.0-centos5.tar.gz
wget --mirror -p --convert-links -P /disk/cloudera http://archive-primary.cloudera.com/navigator-keytrustee5/redhat/6/x86_64/navigator-keytrustee/5.3.0/
	


将下载的文件解压至相应目录如下

mkdir -p /var/www/html/cm5/redhat/6/x86_64/
mkdir -p /var/www/html/cdh5/redhat/6/x86_64/
mkdir -p /var/www/html/navigator-keytrustee5/redhat/6/x86_64/

访问http://cdh1/cm5/redhat/6/x86_64/cm/5/RPMS/x86_64/验证是否可以访问,也可以使用archive.cloudera.com的域名验证一下

3、配置yum文件

cd /etc/yum.repos.d/
wget http://archive-primary.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
wget http://archive-primary.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo
wget http://archive-primary.cloudera.com/navigator-keytrustee5/redhat/6/x86_64/navigator-keytrustee/navigator-keytrustee5.repo


下载下来的文件,baseurl的值都是使用archive.cloudera.com的域名,我们已经在hosts文件中重定向到了cdh1节点

4、安装cm5

wget http://archive-primary.cloudera.com/cm5/installer/5.3.0/cloudera-manager-installer.bin
chmod +x cloudera-manager-installer.bin
./cloudera-manager-installer.bin


等待一小会就安装完成了,即可访问http://localhost:7180访问进行cdh的安装,服务启动需要一小会7180端口才会可用,可以使用netstat -na| grep 7180查看7180端口


5、一键安装cdh

    登录页面,使用 admin/admin登录

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第1张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第2张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第3张图片


这里使用数据包进行安装,选择对应的版本,5.3.0

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第4张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第5张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第6张图片

这里使用root用户,如果使用其他用户,注意给相应的目录权限

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第7张图片

漫长的等待了

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第8张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第9张图片

这里可以选择自己需要的服务

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第10张图片

配置各个服务部署在哪些节点上,这里并没有调整,大家需要按自己的需求更改

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第11张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第12张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第13张图片

这里的设置需要注意,之后出了问题查问题的时候很需要

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第14张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第15张图片

centos6.4使用本地yum源安装cloudera manager 5.3.0和cdh5.3.0_第16张图片