Creating a Permanent Internal Repository
The following sections describe how to create a permanent internal repository using Apache HTTP Server:
Setting Up a Web server
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. The examples in this section use Apache HTTP Server as the Web server. If you already have a Web server in your organization, you can skip to Downloading and publishing the package repository for Cloudera Manager.
- Install Apache HTTP Server:
- RHEL / CentOS
-
sudo yum install httpd
- SLES
-
sudo zypper install httpd
- Ubuntu
-
sudo apt-get install httpd
- Start Apache HTTP Server:
- RHEL 8
-
sudo systemctl start httpd
- SLES 12, Ubuntu 16 or later
-
sudo systemctl start apache2
Downloading and publishing the package repository for Cloudera Manager
- Download the package repository for the product you want to install:
- Cloudera Manager 7
-
Do the following steps to download the files for a Cloudera Manager release:
- Run the following command to create a local repository directory to hold the
Cloudera package
repository:
sudo mkdir -p /var/www/html/cloudera-repos/cm7
- Run the following command to download the repository tarball for your
operating
system:
wget https://[username]:[password]@archive.cloudera.com/p/cm7/7.0.3/repo-as-tarball/cm7.0.3-redhat7.tar.gz
- Run the following command to unpack the tarball into the local repository
directory:
tar xvfz cm7.0.3-redhat7.tar.gz -C /var/www/html/cloudera-repos/cm7 --strip-components=1
- Run the following command to modify the file permission that allows you to
download the files under the local repository
directory:
sudo chmod -R ugo+rX /var/www/html/cloudera-repos/cm7
- Run the following command to create a local repository directory to hold the
Cloudera package
repository:
- Visit the Repository URL
http://<web_server>/cloudera-repos/
in your browser and verify the files you downloaded are present.