GitHub user nickwallen opened a pull request:
https://github.com/apache/metron/pull/660
METRON-1054 Ambari Mpack Attempts to Kill Topologies That Are Not Runâ¦
The Ambari Metron MPack attempts to kill topologies that are not running.
It also attempts to start topologies that are already running. It reports
these conditions as errors. The MPack should not report errors when attempting
to stop an already stopped topology nor when starting an already started
topology.
### Changes
The Ambari MPack management scripts for the Parsers, Enrichment, and
Indexing were all updated so that they only attempt to start topologies that
are not running and only attempt to stop topologies that are running.
### Testing
This can be tested in the Full Dev environment using the following steps.
#### Indexing
(1) Launch Full Dev and ensure all Metron components are running.
(2) `storm kill indexing`
(3) In Ambari, go to http://node1:8080/#/main/services/METRON/summary and
click Service Actions > Restart All.
(4) This action should complete successfully. It should have stopped, then
started the Parsers and Enrichment, but it should have only started Indexing,
since Indexing was not running.
#### Enrichment
(1) Launch Full Dev and ensure all Metron components are running.
(2) `storm kill enrichment`
(3) In Ambari, go to http://node1:8080/#/main/services/METRON/summary and
click Service Actions > Restart All.
(4) This action should complete successfully. It should have stopped, then
started the Parsers and Indexing, but it should have only started Enrichment,
since Enrichment was not running.
#### Parsers
(1) Launch Full Dev and ensure all Metron components are running.
(2) `storm kill bro`
(3) In Ambari, go to the Hosts page at
http://node1:8080/#/main/hosts/node1/summary.
(4) Find the "Metron Parsers" service and click Start on the adjacent
button.
(4) This action should complete successfully. It should have stopped, then
started Snort. It should have only started Bro, since Bro was not running.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nickwallen/metron METRON-1054
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metron/pull/660.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #660
----
commit 42980a8ca19f5a4a7e70dd7afea2e560faff8903
Author: Nick Allen <[email protected]>
Date: 2017-07-19T21:09:16Z
METRON-1054 Ambari Mpack Attempts to Kill Topologies That Are Not Running
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---