How to update the Cloudera VM in 2022? (solved)

In this blog post, I provide instructions about how to update the Cloudera VM, even though the CentOS version used by Cloudera has reached the end-of-life, and the Cloudera VM is no longer updated. I have spent quite a lot of time on this and finally found how to do based on various sources from the Internet.

1. Open a terminal window

2. Enter the command

sudo gedit /etc/yum.repos.d/CentOS-Base.repo

to open a text editor with elevated rights.

3. Replace the content of that file with this:

[base]
name=CentOS-$releasever – Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://mirror.nsc.liu.se/centos-store/6.10/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# released updates
[updates]
name=CentOS-$releasever – Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://mirror.nsc.liu.se/centos-store/6.10/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://mirror.nsc.liu.se/centos-store/6.10/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=https://mirror.nsc.liu.se/centos-store/6.10/centosplus/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=https://mirror.nsc.liu.se/centos-store/6.10/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Then save the file and close the application

4. Next, go back to the terminal to type the following commands:

sudo yum-config-manager –disable epel

sudo yum-config-manager –disable cloudera-cdh5

sudo yum-config-manager –disable cloudera-manager

5. Type this command in the terminal to open the configuration file of Yum:

sudo gedit /etc/yum.conf 

6.Add this entry at the end of the [main] section: 

sslverify=false

Then, save the file and close the application.

7. After that, we will type some additional commands to update and install additional software. During this step, you will be asked several times if you want to continue. When this happens, press “y” and “enter”. The commands are:

sudo yum update ca-certificates

sudo yum update

sudo yum install epel-release

sudo yum –enablerepo=extras install epel-release

8. Let’s say we want to install some Python libraries “mathplotlib” and “imaging”:

sudo yum install python-matplotlib

sudo yum install python-imaging

We can also install PIP:

sudo yum install -y –enablerepo=”epel” python-pip

And we can also install other software like LibreOffice to use some software like Oocalc:

sudo yum install libreoffice

That is all!

This entry was posted in Big data and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *