Remove Metron Installation

After you have backed up your configuration and stopped all Metron services, you need to uninstall Metron.

  1. Verify Metron is stopped:
    storm list
    Examine the output and verify no Metron topologies are active.
  2. In Ambari, select Metron > Services Actions menu > Delete Service.
  3. At the bottom of the Delete Service window, click Delete.
  4. When prompted, enter delete, then click the Delete button to confirm deleting the service.
  5. Uninstall Metron Mpack:
    ambari-server uninstall-mpack --mpack-name=metron-ambari.mpack --verbose
  6. Restart Ambari:
    ambari-server restart
    
  7. Uninstall ElasticSearch mpack if installed:
    ambari-server uninstall-mpack --mpack-name=elasticsearch-ambari.mpack --verbose
  8. Restart Ambari:
    ambari-server restart
    
  9. 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
    
  10. 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
    
  11. List all metron packages by running the following on each host:
    rpm -qa | grep metron
    
  12. Remove all traces of old Metron packages on each host:
    yum remove <metron package names>
    yum clean all
    
  13. Ensure that no Metron packages remain by running the following on each host:
    rpm -qa | grep metron
    The command should return no packages.