Using an Internal Parcel Repository使用parcel库

这篇文章与Using an Internal Package Repository使用内部的库是有区别的,一个是package,一个parcel。不要弄混了。

You can create a parcel repository for Cloudera Manager by either hosting an internal repository or by manually copying the repository files to the Cloudera Manager host.
可以通过托管内部存储库或手动将存储库文件复制到Cloudera Manager主机来为Cloudera Manager创建包存储库。

Continue reading:

Hosting an Internal Parcel Repository在主机上放置一个parcel库

To host an internal repository, you must install or use an existing web server on an internal host that is reachable by the Cloudera Manager host, and then download the repository files to the web server host.
要托管内部存储库,必须在Cloudera Manager可访问的内部主机上安装或使用现有Web服务器,然后将存储库文件下载到Web服务器。

Installing a Web Server安装web服务

The repository is typically hosted using HTTP on a host inside your network. If you already have a web server in your organization, you can skip to Downloading and Publishing the Parcel Repository.

An easy web server to install is the Apache HTTP Server.

Install Apache HTTP Server 安装httpd服务

You may need to respond to some prompts to confirm you want to complete the installation.

RHEL compatiblesudo yum install httpd
SLESsudo zypper install httpd
Ubuntusudo apt-get install httpd

Starting Apache HTTPD

RHEL compatiblesudo service httpd start
SLESsudo service apache2 start
Ubuntusudo service apache2 start

Downloading and Publishing the Parcel Repository下载和发布parcel库

  1. Download the parcel and manifest.json files for your OS distribution from:从下面的连接下载适合你操作系统的parcel和manifest.json文件
    • CDH 5: Impala, Kudu, Spark 1, and Search are included in the CDH parcel.
      • CDH –
      • Accumulo – –
      • GPL Extras –
    • CDS 2 Powered by Apache Spark for CDH 5:
      • The exact parcel name is dependent on the OS. You can find all the parcels at
    • Cloudera Navigator Key Trustee Server:
      • Go to the Key Trustee Server download page. Select Parcels from the Package or Parcel drop-down menu, and click DOWNLOAD NOW. This downloads the Key Trustee Server parcels and manifest.json files in a .tar.gz file. Extract the files with the tar xvfz filename.tar.gzcommand.
    • Cloudera Navigator Key Trustee KMS and HSM KMS: (Cloudera Navigator HSM KMS is included in the Key Trustee KMS parcel).
      • Go to the Key Trustee KMS download page. Select Parcels from the Package or Parcel drop-down menu, and click DOWNLOAD NOW. This downloads the Key Trustee KMS parcels and manifest.json files in a .tar.gz file. Extract the files with the tar xvfz filename.tar.gzcommand.
    • Sqoop Connectors:
  2. Move the .parcel, .sha1 and manifest.json files to the web server directory, and modify file permissions. 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, visithttp://<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配置CM服务使用parcel URL库

  1. Use one of the following methods to open the parcel settings page:
    • Navigation bar
      1. Click  in the top navigation bar or click Hosts and click the Parcels tab.
      2. Click the Configuration button.
    • Menu
      1. Select Administration > Settings.
      2. Select Category > Parcels .
  2. 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.

Using a Local Parcel Repository使用本地parcel库

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

  1. Open the Cloudera Manager web UI and navigate to the Parcels page.打开cm web页面进入parcels页面
  2. Select Configuration and verify that you have a Local Parcel Repository path set. By default, the directory is /opt/cloudera/parcel-repo.选择配置输入你的本地parcel库,缺省是/opt/cloudera/parcel-repo。
  3. Remove any Remote Parcel Repository URLs you are not using, including ones that point to Cloudera archives.删除任何你没有使用的Remote Parcel Repository URLs。
  4. Add the parcel you want to use to the local parcel repository directory that you specified.将要使用的parcel添加到指定的本地parcel存储库目录。
  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.sha1.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.sha1
  7. Change the ownership of the parcel and hash files to cloudera-scm:sudo chown cloudera-scm:cloudera-scm *.parcel.*
  8. In the Cloudera Manager web UI, navigate to the Parcels page.
  9. Click Check for New Parcels.
  10. When the new parcel appears, download, distribute, and activate the parcel.


电子邮件地址不会被公开。 必填项已用*标注