Acceldata
ODP

Mpacks Upgrade or Install

Download the Mpack packages for the services that are installed in the current cluster.

Download the Mpack Packages

Note

Download the supported Mpacks from the below link.

Mpacks Link

Verify the Downloaded Mpacks

Verify that the required Mpack packages are downloaded successfully.

-rw-r--r--  1 root root  29K Aug 30 19:22 ambari-mpacks-spark3_3.5.1.3.3.6.5-1012.tar.gz
-rw-r--r--  1 root root  37K Aug 30 19:22 ambari-mpacks-spark3.3.3.6.5-1012.tar.gz
-rw-r--r--  1 root root  29K Aug 30 19:22 ambari-mpacks-spark3_3.3.3.3.3.6.5-1012.tar.gz
-rw-r--r--  1 root root  27K Aug 30 19:22 ambari-mpacks-pinot-1.4.0.3.3.6.5-1012.tar.gz
-rw-r--r--  1 root root  95K Aug 30 19:22 ambari-mpacks-kafka3-3.7.2.3.3.6.5-1012.tar.gz
-rw-r--r--  1 root root  37K Aug 30 19:22 ambari-mpacks-impala-4.4.1.3.3.6.5-1012.tar.gz

Determine Whether to Upgrade or Install an Mpack

Before proceeding, check whether the corresponding Mpack directory is already present.

  • If the Mpack directory exists, use the upgrade-mpack command.
  • If the Mpack directory does not exist, use the install-mpack command.
cd /var/lib/ambari-server/resources/mpacks

If the directory is present, you can see the following response.

[root@o336eupg1 upgrade_files_336]# ls -l /var/lib/ambari-server/resources/mpacks
total 12
drwxr-xr-x 5 root root  138 May  6 14:39 airflow-ambari-mpack-2.8.3
drwxr-xr-x 6 root root  150 Aug 30 19:22 ambari-impala-mpack-4.4.1.3.3.6.5-1012
drwxr-xr-x 2 root root 4096 Aug 31 09:03 cache
drwxr-xr-x 4 root root  119 Aug 30 19:22 kafka3-ambari-mpack-3.7.2.3.3.6.5-1012
-rwxr-xr-x 1 root root 6676 Aug 31 09:03 mpacks_replay.log
drwxr-xr-x 4 root root  119 Mar 11 13:55 ozone-ambari.mpack-1.4.1
drwxr-xr-x 6 root root  151 Aug 30 19:22 pinot-ambari-mpack-1.4.0.3.3.6.5-1012.3.3.6.5-1012
drwxr-xr-x 4 root root  119 Mar 17 10:53 registry-ambari-mpack-1.0.0
drwxr-xr-x 4 root root  139 Aug 30 19:22 spark3-ambari-3.5.5.mpack-3.5.5.3.3.6.5-1012

For this upgrade, the Mpack directories for Spark 3.3.3 and Spark 3.5.1 are not present. Therefore, install these Mpacks instead of upgrading them.

Upgrade the Existing Mpacks

Run the following commands for the Mpacks that are already installed:

For example:

ambari-server upgrade-mpack --mpack=ambari-mpacks-spark3.3.3.6.5-1012.tar.gz
ambari-server upgrade-mpack --mpack=ambari-mpacks-pinot-1.4.0.3.3.6.5-1012.tar.gz
ambari-server upgrade-mpack --mpack=ambari-mpacks-kafka3-3.7.2.3.3.6.5-1012.tar.gz
ambari-server upgrade-mpack --mpack=ambari-mpacks-impala-4.4.1.3.3.6.5-1012.tar.gz

Install the Required Mpacks

Install the Mpacks whose corresponding Mpack directories are not present:

For example:

ambari-server install-mpack --mpack=ambari-mpacks-spark3_3.5.1.3.3.6.5-1012.tar.gz
ambari-server install-mpack --mpack=ambari-mpacks-spark3_3.3.3.3.3.6.5-1012.tar.gz

Restart Ambari Server

After you upgrade and install the required Mpacks, restart Ambari Server:

ambari-server restart