首页 > 代码库 > CDH5.3集群安装笔记-环境准备(3)

CDH5.3集群安装笔记-环境准备(3)

3、安装本地CDH镜像站点

去http://archive-primary.cloudera.com/cdh5/parcels/latest/上下载CDH-5.3.0-1.cdh5.3.0.p0.30-el6.parcel和manifest.json两个文件,到/home/cdh5/parcels/latest下:

[root@server1 latest]# pwd
/home/cdh5/parcels/latest
[root@server1 latest]# ll
total 1533544
-rw-r--r--. 1 root root 1570299413 Jan  7 00:57 CDH-5.3.0-1.cdh5.3.0.p0.30-el6.parcel
-rw-r--r--. 1 root root      42655 Jan  7 00:47 manifest.json
然后在/var/www/html下创建连接:
ln -s /home/cdh5 /var/www/html/cdh5

去http://archive-primary.cloudera.com/redhat/cdh/ 下载RPM-GPG-KEY-cloudera,到/home/redhat/cdh下:
[root@server1 cdh]# pwd
/home/redhat/cdh
[root@server1 cdh]# ll
total 4
-rw-r--r--. 1 root root 1690 Jan  7 00:50 RPM-GPG-KEY-cloudera
然后再/var/www/html下创建连接:

ln -s /home/redhat /var/www/html/redhat

去http://archive-primary.cloudera.com/cm5/repo-as-tarball/5.3.0/下载cm5.3.0-centos6.tar.gz到/home/下,并解压:

tar -zxvf cm5.3.0-centos6.tar.gz
产生一个cm目录如下:

[root@server1 cm]# pwd
/home/cm
[root@server1 cm]# ll
total 16
lrwxrwxrwx. 1 1106  592    5 Jan  7 20:48 5 -> 5.3.0
drwxrwxr-x. 4 1106  592 4096 Oct 13 14:23 5.3.0
-rw-rw-r--. 1 1106  592  325 Oct 13 14:23 cloudera-manager.repo
-rw-rw-r--. 1 1106  592 1690 Oct 13 14:03 RPM-GPG-KEY-cloudera
然后在/var/www/html下创建连接:

[root@server1 html]# pwd  
/var/www/html  
[root@server1 html]# mkdir -p cm5/redhat/6/x86_64  
[root@server1 html]# ln -s /home/cm /var/www/html/cm5/redhat/6/x86_64

启动你的httpd服务:

chkconfig httpd on
service httpd start

打开浏览器,访问http://192.168.10.1/cdh5/;http://192.168.10.1/redhat/;http://192.168.10.1/cm5这三个web目录,如果可以正常打开,一切ok。如果不行,请查看你的httpd服务的配置是否正确。

至此一个CDH的本地镜像服务器搭建完成了。





CDH5.3集群安装笔记-环境准备(3)