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:

Bash
Copy

For Ubuntu:

Bash
Copy
  1. Update Repository Files: Update ambari.repo (RedHat) or ambari.list (Ubuntu). For repositories, refer Ambari Repositories.
  2. Install Updated Agents:

For RHEL:

Bash
Copy

For Ubuntu:

Bash
Copy
  1. Restore Configuration Files: Backup /etc/ambari-agent/conf/ambari-agent.ini and restore /etc/ambari-agent/conf/ambari-agent.ini

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:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated
On This Page
Upgrade Ambari Agents