Remove Metron Installation
After you have backed up your configuration and stopped all Metron services, you need to uninstall Metron.
-
Verify Metron is stopped:
storm list
Examine the output and verify no Metron topologies are active. - In Ambari, select Metron > Services Actions menu > Delete Service.
- At the bottom of the Delete Service window, click Delete.
- When prompted, enter delete, then click the Delete button to confirm deleting the service.
-
Uninstall Metron Mpack:
ambari-server uninstall-mpack --mpack-name=metron-ambari.mpack --verbose
-
Restart Ambari:
ambari-server restart
-
Uninstall ElasticSearch mpack if installed:
ambari-server uninstall-mpack --mpack-name=elasticsearch-ambari.mpack --verbose
-
Restart Ambari:
ambari-server restart
-
From the Ambari node, enter the following to list all of the Metron packages:
srpm -qa | grep metron
You should see output similar to the following:metron-metron-management-0.7.1-201904012257.noarch metron-enrichment-0.7.1-201904012257.noarch metron-indexing-0.7.1-201904012257.noarch metron-rest-0.7.1-201904012257.noarch metron-alerts-0.7.1-201904012257.noarch metron-data-management-0.7.1-201904012257.noarch metron-parsers-common-0.7.1-201904012257.noarch metron-parsing-storm-0.7.1-201904012257.noarch metron-profiler-storm-0.7.1-201904012257.noarch metron-profiler-repl-0.7.1-201904012257.noarch metron-elasticsearch-0.7.1-201904012257.noarch metron-pcap-0.7.1-201904012257.noarch metron-config-0.7.1-201904012257.noarch metron-maas-service-0.7.1-201904012257.noarch metron-common-0.7.1-201904012257.noarch metron-parsers-0.7.1-201904012257.noarch metron-profiler-spark-0.7.1-201904012257.noarch metron-solr-0.7.1-201904012257.noarch metron-performance-0.7.1-201904012257.noarch
-
Using the metron-config information you received from the input in the previous
step, enter the following to remove all of the Metron packages:
sudo rpm -q --scripts metron-config-0.7.1-201904012257.noarch
You should see output similar to the following:chkconfig --add metron-management-ui chkconfig --add metron-alerts-ui preuninstall scriptlet (using /bin/sh): chkconfig --del metron-management-ui chkconfig --del metron-alerts-ui
-
List all metron packages by running the following on each host:
rpm -qa | grep metron
-
Remove all traces of old Metron packages on each host:
yum remove <metron package names> yum clean all
-
Ensure that no Metron packages remain by running the following on each host:
rpm -qa | grep metron
The command should return no packages.