Acceldata
ODP

Working with Management Packs

Management packs allow you to deploy a range of services to your Ambari-managed cluster. You can use a management pack to deploy a specific component or service.

Accessing ODP Repositories

The ODP mpacks can be accessed via the links listed below :

Component

Version

Tar/zip file

Hue

4.10.0.3.2.2.0-1

Impala

4.1.2.3.2.2.0-1

Nifi

1.23.2.3.2.2.0-1

Spark3

3.2.2.3.2.2.0-1

Installing Management Pack

In general, when working on installing management packs, perform the following steps :

  1. Download Mpack file.
  2. Install the management pack using ambari-server install-mpack --mpack=[service_mpack.gz] --verbose.

Warning

Incase the following error occurs, uninstall the mpack file and perform the given steps:

... (mpack_metadata, mpack_name, mpack_version, mpack_staging_dir, mpack_archive_path) = _install_mpack(options, replay_mode)
File "/usr/lib/ambari-server/lib/ambari_server/setupMpacks.py", line 798, in _install_mpack
process_stack_addon_service_definitions_artifact(artifact, artifact_source_dir, options)
File "/usr/lib/ambari-server/lib/ambari_server/setupMpacks.py", line 557, in process_stack_addon_service_definitions_artifact
sudo.symlink(source_service_version_path, dest_link)
File "/usr/lib/ambari-server/lib/resource_management/core/sudo.py", line 130, in symlink
os.symlink(source, link_name)
OSError: [Errno 17] File exists
#Commands with spark3 mpack as example. Replace spark3 with service that you are installing.
#Uninstall ambari mpack
ambari-server uninstall-mpack --mpack-name=[service_mpack.gz]
#Remove files with mpack and symlinks.
rm -rf /var/lib/ambari-server/data/tmp/ambari-mpacks-spark3-3.2.2.3.2.2.0-2/ /var/lib/ambari-server/resources/stacks/ODP/3.0/services/SPARK3 /var/lib/ambari-server/resources/stacks/ODP/3.1/services/SPARK3 /var/lib/ambari-server/resources/common-services/SPARK3 /var/lib/ambari-agent/cache/stacks/ODP/3.0/services/SPARK3 /var/lib/ambari-agent/cache/stacks/ODP/3.1/services/SPARK3 /var/lib/ambari-agent/cache/common-services/SPARK3 /var/lib/ambari-agent/cache/stacks/ODP/3.2/services/SPARK3
#Re-install ambari mpack
ambari-server install-mpack --mpack=[service_mpack.gz] --verbose
#Remove and create service symlink directory
cd /var/lib/ambari-server/resources/stacks/ODP/3.0/services/
rm -f SPARK3
ln -s /var/lib/ambari-server/resources/mpacks/spark3-ambari-3.2.2-3.2.2.0-2.mpack-3.2.2/common-services/SPARK3/3.2.2 SPARK3
#Remove and create service symlink directory
cd ../../3.1/services/
rm -f SPARK3
ln -s /var/lib/ambari-server/resources/mpacks/spark3-ambari-3.2.2-3.2.2.0-2.mpack-3.2.2/common-services/SPARK3/3.2.2 SPARK3
#Sample output for successful mpack installation is shown below.
INFO: Management pack spark3-ambari-3.2.2-3.2.2.0-2.mpack-3.2.2 successfully installed! Please restart ambari-server.
INFO: Loading properties from /etc/ambari-server/conf/ambari.properties
Ambari Server 'install-mpack' completed successfully.
  1. Restart the Ambari Server ambari-server restart.
  2. Add service from Ambari UI.
  3. Select host(s) for respective component(s).
  4. Start all stopped or required services.

Uninstalling Management Pack

To uninstall ambari mpack, perform the following steps :

  1. Login to Ambari service UI and go to respective service section.
  2. Stop respective service and delete permanently.
  3. Uninstall the service from CLI using ambari-server uninstall-mpack --mpack-name=[service_mpack.gz].
  4. Restart the Ambari Server ambari-server restart.