标签:cm5 cdh5 cm5.1.0 cdh5.1.0 妳那伊抹微笑
博文作者:妳那伊抹微笑目前 CM5.1.0 ,CDH5.1.0 是最新版本
前面已经介绍,这里不再介绍了
[root@a234-198 cm5.1.0]# service iptables stop
必须严格按照以下这种格式 ip aaa.bbb.ccc aaa
例如:116.255.234.198a234-198.hadoop.com a234-198
[root@a234-198 yum.repos.d]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
# cdh5.1.0
116.255.234.196 a234-196.hadoop.com a234-196
116.255.234.197 a234-197.hadoop.com a234-197
116.255.234.198 a234-198.hadoop.com a234-198
116.255.224.226 a224-226.hadoop.com a224-226
116.255.224.227 a224-227.hadoop.com a224-227
116.255.224.229 a224-229.hadoop.com a224-229
[root@a234-198 yum.repos.d]# vi/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=a234-198.hadoop.com
[root@a234-198 yum.repos.d]# hostname
a234-198.hadoop.com
[root@a234-198 yum.repos.d]#
[root@a234-198 yum.repos.d]# vi /etc/selinux/config
# This file controls the state of SELinux on thesystem.
# 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 these two values:
# targeted- Targeted processes are protected,
# mls -Multi Level Security protection.
SELINUXTYPE=targeted
[root@a234-198 yum.repos.d]# pwd
/etc/yum.repos.d
[root@a234-198 yum.repos.d]# ll
total 12
-rw-r--r-- 1root root 210 Jan 29 2013rhel-debuginfo.repo
-rw-r--r--. 1 root root 529 May 31 2012 rhel-source.repo
-rw-r--r-- 1root root 529 Jan 29 2013rhel-source.repo.bak
[root@a234-198 yum.repos.d]# wget-chttp://archive-primary.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo
[root@a234-198 yum.repos.d]# catcloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHator CentOS 6 x86_64
name=Cloudera Manager
baseurl=http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/
gpgkey =http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 1
[root@a234-198 yum.repos.d]#
[root@a234-198 yum.repos.d]# wget-chttp://archive-primary.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
[root@a234-198 yum.repos.d]# cat cloudera-cdh5.repo
[cloudera-cdh5]
# Packages for Cloudera‘s Distribution for Hadoop,Version 5, on RedHat or CentOS 6 x86_64
name=Cloudera‘s Distribution for Hadoop, Version 5
baseurl=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/
gpgkey =http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
gpgcheck = 1
[root@a234-198 yum.repos.d]#
[root@a234-198 yum.repos.d]# ll
total 20
-rw-r--r-- 1 root root 323 Oct 29 2013 cloudera-cdh5.repo
-rw-r--r-- 1 root root 289 Oct 29 2013 cloudera-manager.repo
-rw-r--r-- 1root root 210 Jan 29 2013rhel-debuginfo.repo
-rw-r--r--. 1 root root 529 May 31 2012 rhel-source.repo
-rw-r--r-- 1root root 529 Jan 29 2013rhel-source.repo.bak
[root@a234-198 yum.repos.d]# service ntpd start
Starting ntpd: [ OK ]
[root@a234-198 yum.repos.d]#
这里把这里的rpm包全部下载到本地去,比如饿这里下载到了/usr/local/adsit/yting/cloudera/cm5/cm5.1.0这个目录下
[root@a234-198 yum.repos.d]# catcloudera-manager.repo
[cloudera-manager]
name = Cloudera Manager, Version 5.1.0
baseurl = http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5.1.0/
gpgkey = http://archive.cloudera.com/redhat/cdh/RPM-GPG-KEY-cloudera
gpgcheck = 1
[root@a234-198 yum.repos.d]#
到baseurl的地址把CM需要的所有rpm包下载到本地
[root@a234-198 cm5.1.0]# pwd
/usr/local/adsit/yting/cloudera/cm5/cm5.1.0
[root@a234-198 cm5.1.0]# ll
total 518600
-rw-r--r-- 1 root root 3881788 Jul 17 05:13cloudera-manager-agent-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 388561016 Jul 17 05:13cloudera-manager-daemons-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 8176 Jul 17 05:13 cloudera-manager-server-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 9880 Jul 17 05:13cloudera-manager-server-db-2-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 684608 Jul 17 05:13enterprise-debuginfo-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 137885675 Jul 17 05:13oracle-j2sdk1.7-1.7.0+update55-1.x86_64.rpm
[root@a234-198 cm5.1.0]#
[root@a234-198 cm5.1.0]# pwd
/usr/local/adsit/yting/cloudera/cm5/cm5.1.0
[root@a234-198 cm5.1.0]# wget-c http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin
[root@a234-198 cm5.1.0]# ll
total 519100
-rw-r--r-- 1 root root 3881788 Jul 17 05:13cloudera-manager-agent-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 388561016Jul 17 05:13 cloudera-manager-daemons-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 510569 Jun 5 10:06 cloudera-manager-installer.bin
-rw-r--r-- 1 root root 8176 Jul 17 05:13cloudera-manager-server-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 9880 Jul 17 05:13cloudera-manager-server-db-2-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 684608 Jul 17 05:13enterprise-debuginfo-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 137885675 Jul 17 05:13oracle-j2sdk1.7-1.7.0+update55-1.x86_64.rpm
[root@a234-198 cm5.1.0]# chmod+x cloudera-manager-installer.bin
[root@a234-198 cm5.1.0]# ll
total 519100
-rw-r--r-- 1 root root 3881788 Jul 17 05:13cloudera-manager-agent-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 388561016 Jul 17 05:13cloudera-manager-daemons-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rwxr-xr-x 1 root root 510569 Jun 5 10:06 cloudera-manager-installer.bin
-rw-r--r-- 1 root root 8176 Jul 17 05:13cloudera-manager-server-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 9880 Jul 17 05:13cloudera-manager-server-db-2-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 684608 Jul 17 05:13enterprise-debuginfo-5.1.0-1.cm510.p0.75.el6.x86_64.rpm
-rw-r--r-- 1 root root 137885675 Jul 17 05:13oracle-j2sdk1.7-1.7.0+update55-1.x86_64.rpm
[root@a234-198 cm5.1.0]#
到了这里,基本的准备工作已经做完,现在开始安装rpms,然后运行cloudera-manager-installer.bin这个文件就行了
先前下载的所有rpm包到对应的目录下执行该命令
[root@a234-198 cm5.1.0]# pwd
/usr/local/adsit/yting/cloudera/cm5/cm5.1.0
[root@a234-198 cm5.1.0]# yumlocalinstall --nogpgcheck *.rpm
打印的信息太长了,饿就弄点有用的信息了
这里需要一点时间,5分钟的样子,等一下吧!
[root@a234-198 cdh5.1.0]# yum localinstall--nogpgcheck --skip-broken *.rpm
[root@a234-198 cm5.1.0]# pwd
/usr/local/adsit/yting/cloudera/cm5/cm5.1.0
[root@a234-198 cm5.1.0]#./cloudera-manager-installer.bin
然后就100%了 、、、
安装成功 、、、
[root@a234-198 cm5.1.0]# jps
13213 Jps
12697 Main (这个就是CM的界面管理程序了)
[root@a234-198cm5.1.0]# jps –l (查看下细节)
12697 com.cloudera.server.cmf.Main (就是这个,OK,接下来进入7180端口就好)
13241 sun.tools.jps.Jps
[root@a234-198cm5.1.0]#
这里需要把你的/root/.ssh/id_rs这个文件给下载下来
这一步需要等一下下就好!
安装成功,点击继续 、、、
稍微有一点麻烦,官网的文档也有点坑爹,最麻烦的地方就是装rpms了
写这个博文真TM累,上传图片手都点残了
如果你觉得这篇博文不错,默默地留个言,顶一下吧,反正顶一下又不会怀孕 、、、
_00024 妳那伊抹微笑_云计算之ClouderaManager以及CHD5.1.0集群部署安装文档V1.0,布布扣,bubuko.com
_00024 妳那伊抹微笑_云计算之ClouderaManager以及CHD5.1.0集群部署安装文档V1.0
标签:cm5 cdh5 cm5.1.0 cdh5.1.0 妳那伊抹微笑
原文地址:http://blog.csdn.net/u012185296/article/details/38084107