GitHub user mmiklavc opened a pull request:
https://github.com/apache/incubator-metron/pull/364
Metron-580: Remove hard-coded Metron version from Ambari MPack code
This PR addresses https://issues.apache.org/jira/browse/METRON-580
The purpose here is to keep us from having to grep for version numbers in
the MPack code the next time we bump the Metron version number. The change sets
up a "CURRENT" version directory for the mpack code. The Maven Assembly plugin
is then used to perform two operations: token replacement in source files, and
movement of source files from CURRENT -> METRON VERSION in the final packaging
layout.
**Testing**
Follow install instructions here -
https://www.evernote.com/shard/s530/sh/c5551fbd-0ac1-4861-89ce-9c5e37065c52/b13e05f39eaac1a6
**Note** - if you are using Z shell, there is some wonkiness with the
ambari docker stuff. Run this using Bash and you should be ok.
Make sure you start any sensors *last* to ensure the install goes smoothly
in a local dev machine. For this change and test, I only started up the bro
sensor.
I also modified the sensor-test-mode yaf task to include "ignore_errors:
yes" - there appears to be an issue with Ansible wrt OS'es with systemd -
https://github.com/ansible/ansible-modules-core/issues/915
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mmiklavc/incubator-metron METRON-580
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/364.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 #364
----
commit cc1741bf48528fda629bd0c65f6a3bb5d82899d6
Author: Michael Miklavcic <[email protected]>
Date: 2016-11-16T17:39:54Z
Change to use assembly plugin for version revving
commit 5c3be8846b9a543cacaec05f1c73b5fe94c191ec
Author: Michael Miklavcic <[email protected]>
Date: 2016-11-21T15:42:56Z
METRON-580: Remove hard-coded Metron version from Ambari MPack code
----
---
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.
---