Step 4: Upgrading the Cloudera Manager Agents

Loading Filters ... 7.6.5 7.6.1 7.5.5 7.5.4 7.5.1 7.4.4 7.3.1 7.2.4 7.1.4 7.1.3 7.1.2 7.1.1 7.0.3 5.16 5.15 5.14 5.13 5.16 5.15 5.14 5.13 7.1.7 7.1.6 7.1.5 7.1.4 7.1.3 7.1.2 7.1.1 7.6.5 7.6.1 7.5.5 7.5.4-20668437 7.5.4 7.5.1 7.4.4 7.4.3 7.3.1 7.2.4 7.1.4 7.1.3 7.1.2 7.1.1

Minimum Required Role: Cluster Administrator (also provided by Full Administrator) This feature is not available when using Cloudera Manager to manage Data Hub clusters.

Upgrade the Cloudera Manager Agents (Cloudera Manager 7.0.3 and higher)

  1. Ensure that the ptrace_scope operating system control is set to 0:

    The Cloudera Manager Agent installation process uses a re-parenting mechanism to ensure that running Cloudera Services are not impacted by the Cloudera Manager Agent upgrade. This re-parenting mechanism utilizes the Linux kernel's ptrace capability. If the ptrace_scope system control is set to a non-zero value, then the installer will not be able to re-parent running Cloudera services. The Cloudera Manager Agent RPM will refuse to install if the ptrace_scope control has a non-zero value. For more information, see

    • Verify that the value of ptrace_scope is set to zero. Run the following command to check the value:
      cat /proc/sys/kernel/yama/ptrace_scope
    • If the value is not set to 0, set the value to 0 by running the following command on all cluster hosts:
      echo 0 >> /proc/sys/kernel/yama/ptrace_scope
      If you do not want to allow ptrace_scope to run, run the following command on all cluster hosts to force the Cloudera Manager Agent upgrade:
    • If necessary, you can set ptrace_scope to its original value after the agent upgrades are complete.
  2. After upgrading and starting the Cloudera Manager server, open the Cloudera Manager Admin Console (if you have not already done so) using the following URL:
    The Upgrade Cloudera Manager screen displays:

  3. Click Upgrade Cloudera Manager Agent packages

    The Upgrade Cloudera Manager Agent Packages page displays the Select Repository step.

  4. Select one of the following:
    • Select Public Cloudera Repository if the Cloudera Manager server host has access to the internet.
    • Select the Custom Repository If you are using a local package repository instead of the public repository at, option and enter the Custom Repository URL.
  5. Click Continue.
  6. The Select JDK screen displays the available options for the JDK used in the cluster. Choose one of the following options to install a JDK:
    • Manually Manage JDK – Select this option if you have already installed a supported JDK. For information on installing a JDK, see Upgrading the JDK.
    • Install a Cloudera-provided version of OpenJDK – Cloudera Manager installs OpenJDK 8 on all your cluster hosts, except for the Cloudera Manager server host(s).
    • Install a system-provided version of OpenJDK – Cloudera Manager installs the default version of OpenJDK provided by the host operating system.
  7. Click Continue.

    The Enter Login Credentials page displays.

  8. Specify the credentials and initiate Agent installation:
    1. Select root for the root account, or select Another user and enter the username for an account that has password-less sudo permission.
    2. 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.
    3. Modify the default SSH port if necessary.
    4. 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.
  9. Click Continue.

    The Cloudera Manager Agent packages and, if selected, the JDK are installed.

  10. When the installations are complete, click Finish.

    The Upgrade Cloudera Manager page displays the status of the upgrade. If you see a message listing Cloudera Manager Agents not upgraded, wait a few minutes for the agents to heartbeat and the click the Refresh button.

  11. After the Agents are all upgraded, 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.
  12. When you are satisfied with the inspection results, click Start the Cloudera Management Service.
  13. Confirm that you want to start the Cloudera Management Service by clicking Continue.
  14. After the Cloudera Management Service has started, click Finish.

    You will see a message indicating that the Cloudera Management Service has started.

    The upgrade is now complete.

  15. Click the Home Page link to return to the Home page. Review and fix any critical configuration issues. You may need to restart any clusters if they indicate stale configurations.

    To return to the Upgrade Cloudera Manager page, go to Hosts > All Hosts > Review Upgrade Status.

  16. If you stopped any clusters before upgrading Cloudera Manager, start them now. (For each cluster, go to Cluster Name > Actions > Start.)
  17. If you set ptrace_scope to 0 and want to use the original or a different value, you can reset it by running the following command on all hosts:
    echo [new_value] >> /proc/sys/kernel/yama/ptrace_scope
  18. If you have the Embedded Container Service (ECS) deployed in any clusters, do the following
    1. Restart the ECS Cluster. Go to the ECS cluster, click the actions menu and select Restart.
    2. Unseal the Vault. Go to the ECS service and click Actions > Unseal.