Skip to main content
Version 3.0

Upgrade Apache Ambari.

Prepare the repositories and upgrade the cluster management service.

The Apache Ambari upgrade starts with the package repository definition, on all machines of the Cluster, goes through the Ambari Agent, also on all machines, and ends at the Ambari Server, only on the machine where it is installed.

Before you start

Scenarios​

Define the new Apache Ambari package repository, public or local, on all machines.

Before upgrading Apache Ambari, a new package repository must be defined for it. The procedure applies to all machines of the Cluster and uses the Ambari package repository file (repo file), ambari.repo, in the YUM package manager.

Where

On all machines of the Cluster, in the /etc/yum.repos.d/ directory.

File

ambari.repo, which defines the repository baseurl and gpgkey URLs.

Which package repository do you use?

Your choice changes the commands and passages below.

The choice changes how you adjust the URLs in ambari.repo, in step 3.

Go to the repo file directory

The directory that holds the Ambari package repository file.

Terminal input
cd /etc/yum.repos.d/

Download the ambari.repo file

The ambari.repo saved in the local /etc/yum.repos.d/ directory, to be used by the YUM package manager.

warning

The commands below overwrite the /etc/yum.repos.d/ambari.repo file if it already exists in the directory. If needed, first make a backup of the file with the current definitions.

Run the command below to download the ambari.repo file and save it in the local /etc/yum.repos.d/ directory, to be used by the YUM package manager.

Terminal input (wget)
wget -O /etc/yum.repos.d/ambari.repo https://repo.tecnisys.com.br/repository/public/tdp/3.0/el-9_x86_64/ambari.repo
Terminal input (curl)
curl -o /etc/yum.repos.d/ambari.repo https://repo.tecnisys.com.br/repository/public/tdp/3.0/el-9_x86_64/ambari.repo
Verification
ls /etc/yum.repos.d/ambari.repo

It worked when

The ambari.repo file is listed in the /etc/yum.repos.d/ directory.
$ ls /etc/yum.repos.d/ambari.repo
/etc/yum.repos.d/ambari.repo

Adjust the URLs in ambari.repo

The ambari.repo pointing to the repository you use.

In the ambari.repo file, replace the USER and PASS variables, present in the URLs of the baseurl and gpgkey properties, with the username and password registered on the Tecnisys Site .

It worked when

In the baseurl and gpgkey properties of ambari.repo, the USER and PASS variables were replaced by your username and password.

In the ambari.repo file, the USER and PASS variables are present in the URLs of the baseurl and gpgkey properties. Because you use a local repository, adjust these URLs. Creating the local repository is described in Creating a Local Package Repository.

It worked when

The baseurl and gpgkey properties of ambari.repo point to your local repository.

Update the yum/dnf cache

The cache with the repository of the new TDP version.

After defining the package repository of the new TDP version, we recommend updating the yum/dnf cache:

Terminal input
yum clean all; yum makecache timer;
Verification
yum repolist

It worked when

The Apache Ambari repository defined in ambari.repo appears in the repository list.
$ yum repolist
repo id              repo name
Ambari-TDP           Ambari TDP
TDP-3.0-repo-1       TDP-3.0-repo-1
TDP-UTILS-3.0-repo-1 TDP-UTILS-3.0-repo-1
appstream            Rocky Linux 9 - AppStream
baseos               Rocky Linux 9 - BaseOS
crb                  Rocky Linux 9 - CRB
epel                 Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264  Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras               Rocky Linux 9 - Extras

When something goes wrong​

Troubleshooting

Paste the message or choose the symptom.

  1. Host component out of sync alert in the VERSIONS tab. Cause: Ambari shows an inconsistency in the VERSIONS tab. What to do: Follow the procedure in [Updating the Current Version of the Stack](./atualizacao-registro-stack.mdx) to fix this inconsistency.

Next steps​