Upgrading the Cloudera Manager Agents
Minimum Required Role: Cluster Administrator (also provided by Full Administrator)
Loading Filters ... 6.3.4 6.3.3 6.3.1 6.3.0 6.2.1 6.2.0 6.1.1 6.1.0 6.0.1 6.0.0 5.16 5.15 5.14 5.13 5.12 5.11 5.10 5.9 5.8 5.7 5.6 5.5 5.4 5.3 5.2 5.1 5.0 6.3.4 6.3.3 6.3.2 6.2.1 6.2.0 6.1.1 6.1.0 6.0.1 6.0.0 5.16 5.15 5.14 5.13 5.12 5.11 5.10 5.9 5.8 5.7 5.6 5.5 5.4 5.3 5.2 5.1 5.0
Upgrade the Cloudera Manager Agents
You can upgrade the agents using one of the two options below.
- Option 1. Upgrade the Agents using Cloudera Manager (Recommended)
-
After the Cloudera Manager Server starts and you log in to the Cloudera Manager Admin Console, the Upgrade Cloudera Manager page displays. (It might take several minutes for the server to start.)
If the Upgrade Cloudera Manager page does not display after you upgraded the packages on the Cloudera Manager Server host, open the following URL in your web browser:
https://my_cloudera_manager_server_host:port/cmf/upgrade
https://my_cloudera_manager_server_host:port/cmf/upgrade-wizard/welcome
The status of Agent upgrades is displayed in one or more groups. Because you might have only upgraded the Cloudera Manager Agent on the Cloudera Manager Server host, the first group shows that host as having an upgraded agent. If the hosts managed by Cloudera Manager have different operating systems, a group for each operating system displays the Agent upgrade status for those hosts.
Follow the instructions on the upgrade page to upgrade all the agents.
- Start the Cloudera Manager Management Service.
- Log in to the Cloudera Manager Admin Console.
- Select .
- Select .
- Click Yes, I would like to upgrade Cloudera Manager Agent packages now.
- Click Continue.
The Upgrade Cloudera Manager Agent Packages page displays.
- If there are more than one group of hosts that require agent upgrades, select the group from the drop-down list labeled Upgrade
Cloudera Manager Agent Packages running on:. If there is only one group that requires upgrades, this drop-down list does not appear.
In Cloudera Manager 5.15 or higher, Cloudera Manager can upgrade agents even when they are running on different operating systems or versions (one OS group at a time).
- Click Upgrade Cloudera Manager Agent packages.
The Upgrade Cloudera Manager Agent Packages page displays.
- If you are using a local package repository instead of the public repository at https://archive.cloudera.com, select the Custom Repository option when installing the Cloudera Manager Agent packages and enter the Custom Repository URL.
- RHEL / CentOS
-
Use the baseurl value in the cloudera-manager.repo file as the Custom Repository. Use the gpgkey value as the Custom GPG Key URL.
- SLES
-
Use the baseurl value in the cloudera-manager.repo file as the Custom Repository. Use the gpgkey value as the Custom GPG Key URL.
- Debian / Ubuntu
-
Use the entire deb url contrib line from the cloudera_Manager.list file as the Custom Repository. Use the url/archive.key as the Custom GPG Key URL.
Cloudera Manager automatically enters a custom repository URL that contains your username and password.
- Click Continue.
The Accept JDK License page displays.
- If you want to install JDK 78 on all hosts, select Install Oracle Java SE Development Kit.
- Click Continue.
The Enter Login Credentials page displays.
- Specify the credentials and initiate Agent installation:
- Select root for the root account, or select Another user and enter the username for an account that has password-less sudo permission.
- Select an authentication method:
- If you choose the All hosts accept same password option, enter and confirm the password.
- If you choose the All hosts accept same private key option, provide a passphrase and path to the required key files.
- Modify the default SSH port if necessary.
- Specify the maximum Number of Simultaneous Installations to run at once. The default and recommended value is 10. Adjust this parameter based on your network capacity.
- Click Continue.
The Cloudera Manager Agent packages and, if selected, the JDK are installed.
- When the installations complete, click Finish.
The Upgrade Cloudera Manager page displays the status of the upgrade.
If there are additional groups of hosts that require Agent upgrades, select the next group from the Upgrade Cloudera Manager Agent Packages running on: drop-down list, and repeat the agent installation steps.
- Click Run Host Inspector to run the host inspector. Inspect the output and correct any warnings. If problems occur, you can make changes and then rerun the inspector.
- When you are satisfied with the inspection results, start the Cloudera Management Service.
- Click the link at the bottom of the page to go back to the Home Page.
- Click Continue.
The Cloudera Manager Agent packages and, if selected, the JDK are installed.
The Host Inspector runs to inspect your managed hosts for correct versions and configurations. If problems occur, you can make changes and then click Run Again to rerun the inspector.
- Click Continue.
The Review Changes page displays and suggests configuration changes you may need to make.
- Make any necessary changes and click Continue.
The Upgrade Wizard restarts the Cloudera Manager Management Service.
- Click Finish.
- The Cloudera Manager Home page opens and displays the status of the cluster. It can take several minutes for all of the services to display their current status. You may need to restart some services or redeploy stale client configurations.
- Start the Cloudera Manager Management Service.
- Option 2. Upgrade the Agents using the Command Line
-
Perform the following commands on all hosts managed by Cloudera Manager:
(You can also multiplex the same set of commands to all hosts by using utilities such as csshX, pdsh, or pssh.)- Log in to each host using ssh. For example:
ssh host1.example.com
- Remove any older files in the existing repository directory:
- RHEL / CentOS
-
sudo rm /etc/yum.repos.d/cloudera*manager.repo*
- SLES
-
sudo rm /etc/zypp/repos.d/cloudera*manager.repo*
- Debian / Ubuntu
-
sudo rm /etc/apt/sources.list.d/cloudera*.list*
- Create a repository file so that the package manager can locate and download the binaries. Do one of the following, depending on whether or not you are using a local package
repository:
-
Using a local package repository. (Required when cluster hosts do not have access to the internet.)
- Configure a local package repository hosted on your network.
- In the Package Repository URL, replace the entire URL with the URL for your local package repository. A username and password are not required to access local repositories.
- Click Apply.
-
Using the Cloudera public repository
- Substitute your USERNAME and PASSWORD in the Package Repository URL where indicated in the URL.
- Click Apply
Package Repository URL:
-
- Stop the Cloudera Manager Agent.
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.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
- Install JDK 1.8.
- RHEL / CentOS
-
sudo yum install oracle-j2sdk1.8.x86_64
- SLES
-
sudo zypper install oracle-j2sdk1.8.x86_64
- Debian / Ubuntu
-
sudo apt-get install oracle-j2sdk1.8
-
Upgrade the agent packages.
- RHEL / CentOS
-
sudo yum clean all sudo yum repolist
sudo yum upgrade cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server-db-2
- SLES
-
sudo zypper clean --all
sudo zypper up cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server-db-2
- Debian / Ubuntu
-
sudo apt-get clean sudo apt-get update sudo apt-get dist-upgrade
sudo apt-get install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server-db-2
Configuration file '/etc/cloudera-scm-agent/config.ini' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version.
You may receive a similar prompt for /etc/cloudera-scm-server/db.properties. Answer N to both prompts. - If you customized the /etc/cloudera-scm-agent/config.ini file, your customized file is renamed with the extension .rpmsave or .dpkg-old. Merge any customizations into the /etc/cloudera-scm-agent/config.ini file that is installed by the package manager.
-
Verify that you have the correct packages installed.
- Debian / 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 Cloudera Manager Agent ii cloudera-manager-daemo 5.15.0-0.cm...~sq Provides daemons for monitoring Hadoop and related tools.
- RHEL / CentOS / SLES
-
rpm -qa 'cloudera-manager-*'
cloudera-manager-agent-5.15.0-..cm... cloudera-manager-daemons-5.15.0-..cm... cloudera-manager-server-db-2-5.15.0-..cm...
- Start the Cloudera Manager Agent.
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.04 and higher
-
sudo systemctl start cloudera-scm-agent
If the agent starts without errors, no response displays. - RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04 or 14.04
-
sudo service cloudera-scm-agent start
You should see the following:Starting cloudera-scm-agent: [ OK ]
- In Cloudera Manager 5.15 or higher, you can monitor the progress at https://my_cloudera_manager_server_host:port/cmf/upgrade.
- When all the agents are upgraded, run the Host Inspector.
- In Cloudera Manager 5.14 or lower, Run the Run Host Inspector: Select and click Inspect All Hosts.
- The Host Inspector runs to inspect your managed hosts for correct versions and configurations. If problems occur, you can make changes and then rerun the inspector.
- The Cloudera Manager Home page opens and displays the status of the cluster. It can take several minutes for all of the services to display their current status. You may need to restart some services or redeploy stale client configurations.
- Restart the Cloudera Manager server:
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.04 and higher
-
sudo systemctl restart cloudera-scm-server
- RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04 or 14.04
-
sudo service cloudera-scm-server restart
- Restart the Cloudera Manager server:
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.04 and higher
-
sudo systemctl restart cloudera-scm-server
- RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04 or 14.04
-
sudo service cloudera-scm-server restart
- Log in to each host using ssh. For example:
- RHEL 7, SLES 12, Debian 8, Ubuntu 16.04 and higher
-
sudo systemctl stop supervisord sudo systemctl start cloudera-scm-agent
- RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04 or 14.04
-
sudo service cloudera-scm-agent hard_restart