首页 > 代码库 > 离线安装Cloudera Manager Express

离线安装Cloudera Manager Express

离线安装Cloudera Manager Express

--------------------------------

###一、安装前提###

1. IP地址安排:

#cat /etc/hosts

222.31.101.11 cdh5-nn1

222.31.101.13 cdh5-dn1

222.31.101.14 cdh5-dn2

222.31.101.16 cdh5-dn3


###二、安装步骤###

1. 关闭防火墙并设为开机不启动

service iptables stop

chkconfig iptables off


2. 设置selinux为disabled

#cat /etc/sysconfig/selinux

SELINUX=disabled 


3. 设置集群免密码登陆(本次安装未验证是否必要)

1.设置/etc/ssh/sshd_config,将以***释放开

RSAAuthentication yes

PubkeyAuthentication yes

AuthorizedKeysFile      .ssh/authorized_keys


2.产生密钥

#ssh-keygen -t rsa -P ‘‘

3.将公钥放进authorized_keys中去

#cat id_rsa.pub >> authorized_keys

4.修改authorized_keys权限

#chmod 600 ~/.ssh/authorized_keys


4.  下载Cloudera Manager包

wget http://archive-primary.cloudera.com/cm5/repo-as-tarball/5.2.0/cm5.2.0-centos6.tar.gz


5. 下载CDH5包

wget http://archive-primary.cloudera.com/cdh/repo-as-tarball/5.2.0/cdh5.2.0-centos6.tar.gz


6. 安装并启动httpd服务

yum install httpd

service httpd start 


7. 准备yum源文件

mkdir -p /var/www/html/cm5/redhat/6/x86_64

tar -xzvf cm5.2.0-centos6.tar.gz -C /var/www/html/cm5/redhat/6/x86_64

mkdir -p /var/www/html/cdh/redhat/6/x86_64

tar -xzvf cdh5.2.0-centos6.tar.gz -C /var/www/html/cdh/redhat/6/x86_64


8. 手工加载redhat的ISO文件,然后mount

mount /dev/cdrom /media


9. 建一个a.repo (保证此yum源优先下载有待改善)

#cat a.repo  

[cloudera-manager]

name = Cloudera Manager, Version 5.2.0

baseurl = http://222.31.102.11/cm5/redhat/6/x86_64/cm/5/

gpgcheck = 0


[cloudera-cdh5]

name = Cloudera CDH, Version 5

baseurl = http://222.31.102.11/cdh5/redhat/6/x86_64/cdh/5/

gpgcheck = 0


#cat rhel-source.repo

[rhel-source]

name=Red Hat Enterprise Linux $releasever - $basearch - Source

baseurl=file:///media/

enabled=1

gpgcheck=0


10. 复制yum源配置文件到集群各节点主机.例如:

scp /etc/yum.repo.d/a.repo cdh5-dn1:/etc/yum.repo.d/

scp /etc/yum.repo.d/rhel-source.repo cdh5-dn1:/etc/yum.repo.d/


11. cat /etc/resolv.conf

nameserver 127.0.0.1


cat /etc/dnsmasq.conf  #直接写到文件里去

address=/cdh5-nn1.cuc-rz.dev/222.31.102.11


11. 开始安装

./cloudera-manager-installer.bin


###三、错误情况FAQ###

1. Q1: 日志出现: flock 4

A1: rm -rf /tmp/.scm_prepare_node.lock

2. Q2: 无法接收Agent发出的检测信号

   用检测命令:

   #host -v -t A `hostname`


cloudera manager 服务器上新启动dnsmasq服务

#service dnsmasq start

配置相关文件具体参考:***linux/zuixindnsmasqanzhuangbushuxiangjie_centos6__653221_1381214991.html)


关闭所有机器上的cloudera-scm-agent服务

#service cloudera-scm-agent stop


离线安装Cloudera Manager Express