Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Conversation

@nickwallen
Copy link
Contributor

@nickwallen nickwallen commented Aug 16, 2019

This change upgrades the core Enrichment components to work with HBase 2.0.2. This PR is for the feature/METRON-2088-support-HDP-3.1 feature branch.

This change should be tested in the CentOS 6 dev environment with HDP-2.6. These are backwards compatible HBase changes that require additional changes before everything can be compiled under HDP-3.1.

Changes

  1. Updated the TAXII loader to the HBase 2.0.2 APIs.

  2. Updated the LRU Pruner to the HBase 2.0.2 APIs.

  3. Updated the importer used for things like CSV imports to the HBase 2.0.2 APIs.

$ git diff METRON-2216..METRON-2218 --stat
 metron-platform/metron-data-management/pom.xml                                                                                                       |  12 ------------
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/hbase/mr/PrunerMapper.java                                          |  36 +++++++++++++++++++++++------------
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/HBaseExtractorState.java                           |   8 ++++----
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/importer/AbstractLocalImporter.java                |  26 +++++++++++++++++++++++--
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/importer/Importer.java                             |   7 ++-----
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/importer/LocalImporter.java                        |  27 +++++++++++++-------------
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/importer/LocalSummarizer.java                      |   2 ++
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/flatfile/importer/MapReduceImporter.java                    |   5 +++++
 metron-platform/metron-data-management/src/main/java/org/apache/metron/dataloads/nonbulk/taxii/TaxiiHandler.java                                     | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------
 metron-platform/metron-data-management/src/test/java/org/apache/metron/dataloads/nonbulk/flatfile/SimpleEnrichmentFlatFileLoaderIntegrationTest.java |   7 ++++---
 metron-platform/metron-data-management/src/test/java/org/apache/metron/dataloads/nonbulk/taxii/TaxiiIntegrationTest.java                             | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------
 metron-platform/metron-enrichment/metron-enrichment-common/src/main/java/org/apache/metron/enrichment/converter/EnrichmentValue.java                 |   8 ++++++++
 12 files changed, 234 insertions(+), 162 deletions(-)

Acceptance Testing

Basics

Verify data is flowing through the system, from parsing to indexing

  1. Launch the development environment.

    cd metron-deployment/development/centos6
    vagrant up
    
  2. Open Ambari and navigate to the Metron service http://node1:8080/#/main/services/METRON/summary

  3. Open the Alerts UI

  4. Verify alerts show up in the main UI - click the search icon (you may need to wait a moment for them to appear)

  5. Head back to Ambari and select the Kibana service http://node1:8080/#/main/services/KIBANA/summary

  6. Open the Kibana dashboard via the "Metron UI" option in the quick links

  7. Verify the dashboard is populating

Additional Instructions

TODO

Pull Request Checklist

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
  • Has your PR been rebased against the latest commit within the target branch (typically master)?
  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?
  • Have you included steps or a guide to how the change may be verified and tested manually?
  • Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
  • Have you written or updated unit tests and or integration tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

@nickwallen
Copy link
Contributor Author

No longer needed per this discussion.

@nickwallen nickwallen closed this Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant