This topic describes how to reinstall the same version of Cloudera
Manager you were using previously, so that the version of your Cloudera
Manager Agents match the server. The steps below assume that the Cloudera
Manager Server is already stopped (because it failed to start after the
attempted upgrade).
Ensure Cloudera Manager Server and Agent are stopped.🔗
Log in to the Cloudera Manager Server host.
ssh my_cloudera_manager_server_host
Stop the
Server.
sudo systemctl stop cloudera-scm-server
Stop the Agent.
RHEL 7, SLES 12, Ubuntu 18.04 and higher
sudo systemctl stop cloudera-scm-agent
RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu
12.04 or 14.04
sudo service cloudera-scm-agent stop
Restore the Cloudera Manager Database (if necessary)🔗
If your Cloudera Manager upgrade fails, you need to determine whether
the upgrade process has successfully completed updating the schema of
the Cloudera Manager database. If the schema update has begun, you must
restore the Cloudera Manager database using a backup taken before you began
the upgrade.
To determine whether the schema has been updated, examine the
Cloudera Manager server logs, and look for a message similar to the
following: Updated Schema Version to 60000. (The
version number may be different for your environment.)
Run the
following command to find the log entry (f the log file is in a
different location, substitute the correct
path):
grep 'Updated Schema Version to ' /var/log/cloudera-scm-server/cloudera-scm-server.log
If required, restore the database.
The procedure for restoring
the database depends on the type of database used by Cloudera
Manager.
If you are using the embedded PostgreSQL database, stop the Embedded PostgreSQL database:
RHEL 7, SLES 12, Ubuntu 18.04 and higher
sudo systemctl stop cloudera-scm-server-db
RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu
12.04 or 14.04
sudo service cloudera-scm-server-db stop
If you are not using the embedded PostgreSQL database and you attempt to stop it,
you might see a message indicating that the service cannot be found. If you see a message
that the shutdown failed, then the embedded database is still running, probably because
services are connected to the Hive metastore. If the database shutdown fails due to
connected services, issue the following command:
RHEL-compatible 7 and higher,
Ubuntu
16.04
sudo service cloudera-scm-server-db next_stop_fastsudo service cloudera-scm-server-db stop
All other Linux
distributions
sudo service cloudera-scm-server-db fast_stop
Establish Access to the Software🔗
needs access to a package repository that contains the
updated software packages. You can choose to access the public repositories directly, or you can
download those repositories and
set up a local repository to access them from within your network. If your cluster
hosts do not have connectivity to the Internet, you must set up a local repository.
If you have enabled high availability for , perform the
following steps on the hosts for both the active and passive instances
of the server.
Replace changeme
with your username
and password in
the
/etc/apt/sources.list.d/cloudera_manager.list
file.
A upgrade can introduce
new package dependencies. Your organization may have restrictions or
require prior approval for installation of new packages. You can
determine which packages may be installed or upgraded:
RHEL / CentOS
yum deplist cloudera-manager-agent
SLES
zypper info --requires cloudera-manager-agent
Ubuntu
apt-cache depends cloudera-manager-agent
Downgrade the Cloudera Manager Packages🔗
Downgrade the packages. Note: Only add
cloudera-manager-server-db-2 if you are using the
embedded PostgreSQL database.
RHEL / CentOS
sudo yum clean allsudo yum repolist
sudo yum downgrade "cloudera-manager-*"
SLES
sudo zypper clean --all
sudo zypper dup -r baseurl
Ubuntu
There is no action that downgrades to the
version currently in the repository.
Verify that you have the correct packages installed.
Ubuntu
dpkg-query -l 'cloudera-manager-*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================-======================-============================================================
ii cloudera-manager-agent 5.15.0-0.cm...~sq The Agent
ii cloudera-manager-daemo 5.15.0-0.cm...~sq Provides daemons for monitoring Hadoop and related tools.
ii cloudera-manager-serve 5.15.0-0.cm...~sq The Server
If the Cloudera Manager server host has an agent installed, restore
the Cloudera Manager agent directory from a backup taken during the
upgrade process:
vim /var/log/cloudera-scm-server/cloudera-scm-server.log
This site uses cookies and related technologies, as described in our privacy policy, for purposes that may include site operation, analytics, enhanced user experience, or advertising. You may choose to consent to our use of these technologies, or