Creating and Using a Parcel Repository
This topic describes how to create a repository and then how to direct hosts in your environment to use that repository. To create a repository, you simply put the parcel files you want to host in one directory. Then publish the resulting repository on a website.
Install a Web Server
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 move the repository directory, which will include both the RPMs and the repodata/ subdirectory, to a location hosted by the web server. An easy web server to install is the Apache HTTPD. If you are able to use an existing web server, then note the URL and skip to Download Parcel and Publish Files.
Installing Apache HTTPD
OS | Command |
---|---|
RHEL |
[root@localhost yum.repos.d]$ yum install httpd |
SLES |
[root@localhost zypp]$ zypper install httpd |
Ubuntu or Debian |
[root@localhost apt]$ apt-get install httpd |
Starting Apache HTTPD
OS | Command |
---|---|
RHEL |
[root@localhost tmp]$ service httpd start Starting httpd: [ OK ] |
SLES |
[root@localhost tmp]$ service apache2 start Starting httpd: [ OK ] |
Ubuntu or Debian |
[root@localhost tmp]$ service apache2 start Starting httpd: [ OK ] |
Download Parcel and Publish Files
- Download the parcel and manifest.json files for your OS distribution from
- CDH 4
- CDH - http://archive.cloudera.com/cdh4/parcels/
- Impala - http://archive.cloudera.com/impala/parcels/
- Search http://archive.cloudera.com/search/parcels/
- Spark - http://archive.cloudera.com/spark/parcels/
- GPL Extras - http://archive.cloudera.com/gplextras/parcels/
- CDH 5 - Impala, Spark, and Search
are included in the CDH parcel.
- CDH - http://archive.cloudera.com/cdh5/parcels/
- GPL Extras - http://archive.cloudera.com/gplextras5/parcels/
- Other services
- Accumulo - http://archive.cloudera.com/accumulo/parcels/
- Sqoop connectors - http://archive.cloudera.com/sqoop-connectors/parcels/
- CDH 4
- Move the parcel and manifest.json files to the web server directory, and modify file permissions. For example, you might use the following commands:
[root@localhost tmp]$ mkdir /var/www/html/cdh4.6 [root@localhost tmp]$ mv CDH-4.6.0-1.cdh4.6.0.p0.26-lucid.parcel /var/www/html/cdh4.6 [root@localhost tmp]$ mv manifest.json /var/www/html/cdh4.6 [root@localhost tmp]$ chmod -R ugo+rX /var/www/html/cdh4.6
After moving the files and changing permissions, visit http://hostname:80/cdh4.6/ to verify that you can access the parcel. Apache may have been configured to not show indexes, which is also acceptable.
Configure the Cloudera Manager Server to Use the Parcel URL
- Do one of the following to open the parcel settings page:
-
- Click in the top navigation bar
- Click the Edit Settings button.
-
- Select .
- Click the Parcels category.
-
- Click the Hosts tab.
- Click the Configuration tab.
- Click the Parcels category.
- Click the Edit Settings button.
-
- In the Remote Parcel Repository URLs list, click to open an additional row.
- Enter the path to the parcel. For example, http://hostname:80/cdh4.6/.
- Click Save Changes to commit the changes.
<< Understanding Custom Installation Solutions | Creating and Using a Package Repository >> | |