Upgrade Ambari Agents

Before proceeding with the Ambari Agent Upgrade on all nodes where Ambari Agents are installed, ensure that you have stopped both the Ambari Server and Agents during the Ambari Server Upgrade.

Before the upgrade, make sure to back up the file located at /etc/ambari-agent/conf/ambari-agent.ini.

  1. Erase Ambari Agent: From the Ambari agents node, remove the installed packages before upgrading:

For RHEL:

yum remove ambari-agent -y

For Ubuntu:

apt remove ambari-agent -y

Update Repository Files: Update ambari.repo (RedHat) or ambari.list (Ubuntu). For repositories, refer Accessing Acceldata Repositories.

  1. Install Updated Agents:

For RHEL:

yum clean all yum install ambari-agent -y

For Ubuntu:

apt clean apt update apt install ambari-agent -y
  1. Restore Configuration Files: Backup /etc/ambari-agent/conf/ambari-agent.ini and restore /etc/ambari-agent/conf/ambari-agent.ini

Mandatory Step -

Add new configs to ambari-agent.ini file if not already present:

  1. Under the [agent] section, add command_file_retention_policy=remove_on_success

  2. under the [security] section, add agent_secret=HT/kjN2ou6EVo29OEO0LuueisFD5ZznlWORt+s2Kmj8=

⚠️ Placeholder secret — must be identical across all Ambari agents. Can be updated by the user to a secure value.

  1. Start Ambari Agents:

ambari-agent start


  Last updated
On This Page
Upgrade Ambari Agents