标签:
笔者博文:妳那伊抹微笑
itdog8 地址链接 : http://www.itdog8.com(个人链接)
眼下 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。接下来进入7180port就好)
13241 sun.tools.jps.Jps
[root@a234-198cm5.1.0]#
这里须要把你的/root/.ssh/id_rs这个文件给下载下来
!!
)这一步须要等一下下就好!
成功安装,点击继续 、、、
略微有一点麻烦,官网的文档也有点坑爹,最麻烦的地方就是装rpms了
写这个博文真TM累。上传图片手都点残了
假设你认为这篇博文不错,默默地留个言,顶一下吧,反正顶一下又不会怀孕 、、、
版权声明:本文博客原创文章。博客,未经同意,不得转载。
_00024 尼娜抹微笑伊拉克_云计算ClouderaManager以及CHD5.1.0群集部署安装文档V1.0
标签:
原文地址:http://www.cnblogs.com/hrhguanli/p/4725412.html