搭建内部仓库使用yum安装cm

Creating a Permanent Internal Repository

1,安装httpd

 yum install httpd

 删除/etc/httpd/conf/httpd.conf  里的include 

2,下载源文件cm

Download the tarball for your OS distribution from the repo-as-tarball archive:

Cloudera Manager 5: https://archive.cloudera.com/cm5/repo-astarball/

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

解压

Unpack the tarball, move the files to the web server directory, and modify filepermissions. For example, you might use the following commands

$ tar xvfz cm5.14.0-centos7.tar.gz
$ sudo mv cm /var/www/html
$ sudo chmod -R ugo+rX /var/www/html/cm

3,配置客户端使用repo

Modifying Clients to Use the Internal Repository

Create /etc/yum.repos.d/cloudera-repo.repo files on clusterhosts with the following content, where <web_server> is thehostname of the web server:

$ [cloudera-repo]
$ name=cloudera-repo
$ baseurl=http://<web_server>/cm/5
$ enabled=1
$ gpgcheck=0

4,配置parcel 仓库

Hosting an Internal Parcel Repository

配置httpd

1,Download the parcel and manifest.json files for your OS distribution from:

CDH 5: Impala, Kudu, Spark 1, and Search are included in the CDH parcel.

CDH - https://archive.cloudera.com/cdh5/parcels/

Accumulo - - https://archive.cloudera.com/accumulo-c5/parcels/

GPL Extras - https://archive.cloudera.com/gplextras5/parcels/

可以不做》

CDS 2 Powered by Apache Spark for CDH 5:

The exact parcel name is dependent on the OS. You can find all the parcels athttps://archive.cloudera.com/spark2/parcels/ .

Cloudera Navigator Key Trustee Server:

Go to the Key Trustee Server download page (http://www.cloudera.com/content/www/enus/downloads/navigator/key-trustee-server.html) . Select Parcels from the Package or Parcel drop-down menu, and click

2,Move the .parcel and manifest.json files to the web server directory, and modify the file permissions. The hosted .sha1 files

are not used by Cloudera Manager when it obtains the parcels from a web server. Instead, it extracts the SHA1 hashes provided in

manifest.json . For example

sudo mkdir -p /var/www/html/cloudera-parcels/cdh5/<cdh5_version>/
sudo mv *.parcel* /var/www/html/cloudera-parcels/cdh5/<cdh5_version>/
sudo mv manifest.json /var/www/html/cloudera-parcels/cdh5/<cdh5_version>/
sudo chmod -R ugo+rX /var/www/html/cloudera-parcels/cdh5/<cdh5_version>/

Replace <cdh5_version> with your CDH version (for example, 5.14.0 ). After moving the files and changing permissions, visit

http://<web_server>/cloudera-parcels/cdh5/<cdh5_version> to verify that you can access the parcel. If you do not see

anything, your web server may have been configured to not show indexes.

Configuring the Cloudera Manager Server to Use the Parcel URL for Hosted Repositories

In the Remote Parcel Repository URLs list, click the addition symbol to open an additional row.

3. Enter the path to the parcel. For example: http://<web_server>/cdh5/<cdh5_version>

4. Click Save Changes to commit the changes

配置使用本地的parcel 仓库

To use a local parcel repository, complete the following steps:

  1. Open the Cloudera Manager web UI and navigate to the Parcels page.
  2. Select Configuration and verify that you have a Local Parcel Repository path set. By default, the directory is /opt/cloudera/parcelrepo .
  3. Remove any Remote Parcel Repository URLs you are not using, including ones that point to Cloudera archives.
  4. Add the parcel you want to use to the local parcel repository directory that you specified.
  5. In the command line, navigate to the local parcel repository directory.
  6. Create a SHA1 hash for the parcel you added and save it to a file named <parcel_name>.parcel.sha .

    For example, the following command generates a SHA1 hash for the parcel CDH-5.14.0-1.cdh5.14.0.p0.24-el7.parcel :
sha1sum CDH-5.14.0-1.cdh5.14.0.p0.24-el7.parcel | awk '{ print $1 }' > CDH-5.14.0-1.cdh5.14.0.p0.24-el7.parcel.sha
  1. Change the ownership of the parcel and hash files to cloudera-scm :

    sudo chown cloudera-scm:cloudera-scm *.parcel.*
  2. In the Cloudera Manager web UI, navigate to the Parcels page

  3. Click Check for New Parcels.

  4. When the new parcel appears, download, distribute, and activate the parcel

cdh搭建仓库的更多相关文章

  1. CDH搭建大数据集群(5.10.0)

    纠结了好久,还是花钱了3个4核8G的阿里云主机,且行且珍惜,想必手动搭建过Hadoop集群的完全分布式.HBase的完全分布式的你(当然包括我,哈哈),一定会抱怨如此多的配置,而此时CDH正是解决我们 ...

  2. Update(Stage5):Kudu入门_项目介绍_ CDH搭建

    Kudu 导读 什么是 Kudu 操作 Kudu 如何设计 Kudu 的表 Table of Contents 1. 什么是 Kudu 1.1. Kudu 的应用场景 1.2. Kudu 和其它存储工 ...

  3. 使用Windows Azure的VM安装和配置CDH搭建Hadoop集群

    本文主要内容是使用Windows Azure的VIRTUAL MACHINES和NETWORKS服务安装CDH (Cloudera Distribution Including Apache Hado ...

  4. CDH搭建Hadoop集群(Centos7)

    一.说明 节点(CentOS7.5) Server  || Agent CPU node11 Server  || Agent 4G node12 Agent 2G node13 Agent 2G 二 ...

  5. CDH搭建Hadoop分布式服务器集群(java新手小白)

    1首先对于一个java还白的小白,先理解CDH与Hadoop的关系 一.Hadoop版本选择. Hadoop大致可分为Apache Hadoop和第三方发行第三方发行版Hadoop,考虑到Hadoop ...

  6. CDH搭建和集成spark、kafka操作

    系统:Centos7 CDH版本:5.14.0 请自己提前安装好:mysql.jdk 并下载好相关依赖(每一台机器) yum -y install chkconfig python bind-util ...

  7. cdh maven仓库地址

    常用的maven仓库地址: 中央库:http://repo.maven.apache.org/maven2/ cdh库:https://repository.cloudera.com/artifact ...

  8. centos6+cdh5.4.0 离线搭建cdh搭建

    p.MsoNormal { margin: 0pt; margin-bottom: .0001pt; text-align: justify; font-family: Calibri; font-s ...

  9. 2.5、CDH 搭建Hadoop在安装(设置Cloudera Manager数据库)

    步骤5:设置Cloudera Manager数据库 Cloudera Manager Server包含一个可以为自己创建和配置数据库的脚本.该脚本可以: 创建Cloudera Manager Serv ...

随机推荐

  1. flutter环境配置(windows)

    参考以下链接 下载安装步骤: https://www.cnblogs.com/yangyxd/p/8809512.html 安装Flutter环境遇到Android license status un ...

  2. vue组件添加事件@click.native

    1,给vue组件绑定事件时候,必须加上native ,否则会认为监听的是来自Item组件自定义的事件 2,等同于在子组件中:  子组件内部处理click事件然后向外发送click事件:$emit(&q ...

  3. Java第六周课堂示例总结

    一.如果一个类中既有初始化块,又有构造方法,同时还设定了字段的初始值,谁说了算? public class InitializeBlockDemo { /** * @param args */ pub ...

  4. acmsguru

    acmsguru 101 - Domino 要求每两个相邻的多尼诺骨牌相对的数字相同,即做一个一笔画 #include<bits/stdc++.h> using namespace std ...

  5. vs2019编译opencv

    序 微软家的宇宙第一ide:visual studio已经更新到了2019版,芒果也更新尝鲜了一遍,体验还不错,建议更新尝尝鲜.芒果顺便使用vs2019编译了一遍opencv,编译过程也非常顺利,以下 ...

  6. 自动化测试_百度--糯米中--携程-出行<一>

    1:接下来我们看看思路  和相应的功能 使用python+selenium+unittest完成测试脚本 打开chrome浏览器,窗口最大化,设置等待时间10s 打开百度首页 鼠标移动到更多产品,点击 ...

  7. 类型(Type)

    A data type is homogeneous collection of values,effectiovely presented,equipped with a set of operat ...

  8. Tomcat 设置80端口

    1:修改tomcat配置 vi /usr/local/tomcat/conf/server.xml 找到 Connector port="8080" protocol=" ...

  9. Redis原子计数器incr,防止并发请求

    转自:https://blog.csdn.net/Roy_70/article/details/78260826 一.前言在一些对高并发请求有限制的系统或者功能里,比如说秒杀活动,或者一些网站返回的当 ...

  10. Zookeeper报错Will not attempt to authenticate using SASL解决办法

      版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/qq642159746/article/ ...