CDH 使用内部包仓库

安装web服务
以apache为例

//# RHEL
$ sudo yum install httpd
$ sudo service httpd start

//# SLES
$ sudo zypper install httpd
$ sudo service apache2 start

//# Ubuntu
$ sudo apt-get install httpd
$ sudo service apache2 start

httpd根目录下,需要包含所需的RPM包和repodata目录;

下载包和发布仓库文件

下载地址

//# CM 5
https://archive.cloudera.com/cm5/repo-as-tarball/

//# CDH 5
https://archive.cloudera.com/cdh5/repo-as-tarball/

//# Cloudera Navigator 数据加密组件
//# Navigator Key Trustee Server
http://www.cloudera.com/content/www/en-us/downloads/navigator/key-trustee-server.html

//# Cloudera Navigator Key HSM
http://www.cloudera.com/content/www/en-us/downloads/navigator/key-hsm.html

//# Cloudera Navigator Key Trustee KMS
http://www.cloudera.com/content/www/en-us/downloads/navigator/key-trustee-kms.html

//# Cloudera Navigator Encrypt
http://www.cloudera.com/content/www/en-us/downloads/navigator/encrypt.html

下载包集合

//# apache默认根目录
$ sudo cd /var/www/html

//# 下载解压包集合
$ sudo wget https://archive.cloudera.com/cm5/repo-as-tarball/5.16/cm5.16.2-centos6.tar.gz
$ sudo tar xvfz cm5.14.0-centos7.tar.gz
$ sudo mv cm /var/www/html
$ sudo chmod -R ugo+rX /var/www/html/cm

创建临时web服务

使用Python SimpleHTTPServer

//# Python SimpleHTTPServer根目录
$ sudo cd /tmp

//# 下载解压包集合
$ sudo wget https://archive.cloudera.com/cm5/repo-as-tarball/5.16/cm5.16.2-centos6.tar.gz
$ sudo tar xvfz cm5.14.0-centos7.tar.gz
$ sudo mv cm /tmp
$ sudo chmod -R ugo+rX /tmp/cm

//# 启动
$ python -m SimpleHTTPServer 8900

配置客户端

RHEL

$ cat /etc/yum.repos.d/cloudera-repo.repo
[cloudera-repo]
name=cloudera-repo
baseurl=http:///cm/5
enabled=1
gpgcheck=0

SLES

$ zypper addrepo http:///cm 

Ubuntu

$ cat /etc/apt/sources.list.d/cloudera-repo.list
deb http:///cm  

变量在./conf/distributions

你可能感兴趣的:(CDH,chd,包仓库)