Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active April 7, 2022 11:29
Show Gist options
  • Save dgadiraju/86b56b4e12fc8471b7f267cdc4ced1fa to your computer and use it in GitHub Desktop.
Save dgadiraju/86b56b4e12fc8471b7f267cdc4ced1fa to your computer and use it in GitHub Desktop.
cd /etc/yum.repos.d/
sudo wget https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/cloudera-manager.repo
cd /var/www/html
sudo mkdir -p cm5/redhat/7/x86_64/cm/5
sudo reposync -r cloudera-manager
sudo mv /var/www/html/cloudera-manager/RPMS /var/www/html/cm5/redhat/7/x86_64/cm/5
cd /var/www/html/cm5/redhat/7/x86_64/cm/5
sudo createrepo .
cd /var/www/html/cm5/redhat/7/x86_64/cm/
sudo wget https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera
[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHat or CentOS 7 x86_64
name=Cloudera Manager
baseurl=http://bigdataserver-1/cm5/redhat/7/x86_64/cm/5/
gpgkey =http://bigdataserver-1/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 1
@Rhayar-dr
Copy link

Hi, wget is not working because this aksing a subscription of Cloudera.

@maleterian
Copy link

latest update to make it work after access changes

create repo

sudo yum -y install wget createrepo yum-utils
sudo mkdir -p /var/www/html
sudo systemctl restart httpd

cd /etc/yum.repos.d/
sudo wget https://archive.cloudera.com/cm7/7.4.4/redhat7/yum/cloudera-manager-trial.repo
sudo mv cloudera-manager-trial.repo cloudera-manager.repo

cd /var/www/html
sudo reposync -r cloudera-manager
sudo mkdir -p /var/www/html/cm7/7.4.4/redhat7/yum/
sudo mv /var/www/html/cloudera-manager/RPMS /var/www/html/cm7/7.4.4/redhat7/yum/

cd /var/www/html/cm7/7.4.4/redhat7/yum/
sudo wget https://archive.cloudera.com/cm7/7.4.4/redhat7/yum/RPM-GPG-KEY-cloudera

cd /etc/yum.repos.d/

sudo vi cloudera-manager.repo

[cloudera-manager]
name=Cloudera Manager 7.4.4
baseurl=http://vm_name/cm7/7.4.4/redhat7/yum/
gpgkey=http://vm_name/cm7/7.4.4/redhat7/yum/RPM-GPG-KEY-cloudera
gpgcheck=1
enabled=1
autorefresh=0
type=rpm-md

test

http://vm_ip/cm7/7.4.4/redhat7/yum/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment