【【Centos7.6安装安装CDH6.1.0】第三节】第三节 Python2.7.5安装、时钟同安装、时钟同
步及步及CDH本地本地Yum源搭建源搭建
【【Centos7.6安装安装CDH6.1.0】手把手教你搭建】手把手教你搭建CDH6.1.0下载依赖时钟同步安装Python2.7.5跳转
下载依赖下载依赖
root用户下,在mini1上创建down.sh脚本,脚本内容如下:
#!/bin/bash
################################################################################################################################
#--设计人员:Jack-Roy
#--设计日期:2020-01-31
#--联系方式:814533995@qq.com
#--功能说明: 下载cdh相关包,搭建yum源
#--版 本:v-1.0.0
################################################################################################################################
# CM6.1的安装包
cd /root
mkdir cm
cd cm
wget https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/cloudera-manager-agent-6.1.0-769885.el7.x86_64.rpm
wget https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/cloudera-manager-daemons-6.1.0-
769885.el7.x86_64.rpm
wget https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm
wget https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/cloudera-manager-server-db-2-6.1.0-
769885.el7.x86_64.rpm
wget https://archive.cloudera.com/cm6/6.1.0/redhat7/yum/RPMS/x86_64/oracle-j2sdk1.8-1.8.0+update141-1.x86_64.rpm
wget https://archive.cloudera.com/cm6/6.1.0/allkeys.asc
# CDH6.1的安装包
cd /root
mkdir cdh_parcel
cd cdh_parcel
wget https://archive.cloudera.com/cdh6/6.1.0/parcels/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel
wget https://archive.cloudera.com/cdh6/6.1.0/parcels/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha256
wget https://archive.cloudera.com/cdh6/6.1.0/parcels/manifest.json
# 这里CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha256需要重命名为CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha
mv CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha256 CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha
yum -y install httpd
yum -y install createrepo
systemctl start httpd
systemctl enable httpd
# 创建Cloudera Manager仓库,便于分发至从节点进行agent的安装
mkdir /var/www/html/cm6/
cd /var/www/html/cm6/
mv /root/cm/allkeys.asc /var/www/html/cm6
mv /root/cm/cloudera-manager-agent-6.1.0-769885.el7.x86_64.rpm /var/www/html/cm6
mv /root/cm/cloudera-manager-daemons-6.1.0-769885.el7.x86_64.rpm /var/www/html/cm6
mv /root/cm/cloudera-manager-server-6.1.0-769885.el7.x86_64.rpm /var/www/html/cm6
mv /root/cm/cloudera-manager-server-db-2-6.1.0-769885.el7.x86_64.rpm /var/www/html/cm6
mv /root/cm/oracle-j2sdk1.8-1.8.0+update141-1.x86_64.rpm /var/www/html/cm6
# 生成RPM元数据
createrepo .
yum install tree
tree /var/www/html/cm6
# 创建Parcel仓库
mkdir /var/www/html/cdh6
cd /var/www/html/cdh6
mv /root/cdh_parcel/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel /var/www/html/cdh6
mv /root/cdh_parcel/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel.sha /var/www/html/cdh6
mv /root/cdh_parcel/manifest.json /var/www/html/cdh6
createrepo .
tree /var/www/html/cdh6
# 创建CM的yum资源库配置文件
touch /etc/yum.repos.d/cloudera-repo.repo
评论0
最新资源