This repository was archived by the owner on Aug 20, 2025. It is now read-only.
METRON-2216 Upgrade Core Enrichments for HBase 2.0.2 #1482
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.1feature 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
Created the
FakeEnrichmentLookupwhich allows us to perform enrichment lookups during testing in cases where we are not able to run HBase in-memory. This replaces the "mock" Hbase mechanism that will not work in HBase 2.0.2.Updated the Stellar
ENRICHMENT_GETfor HBase 2.0.2.Updated the Stellar
ENRICHMENT_EXISTSfor HBase 2.0.2.Updated the legacy HBase adapters for HBase 2.0.2.
Acceptance Testing
Basics
Verify data is flowing through the system, from parsing to indexing
Launch the development environment.
Open Ambari and navigate to the Metron service http://node1:8080/#/main/services/METRON/summary
Open the Alerts UI
Verify alerts show up in the main UI - click the search icon (you may need to wait a moment for them to appear)
Head back to Ambari and select the Kibana service http://node1:8080/#/main/services/KIBANA/summary
Open the Kibana dashboard via the "Metron UI" option in the quick links
Verify the dashboard is populating
Enrichment Stellar Functions in Storm
Follow instructions similar to these to load
the user data.
Create a simple file called
user.csv.jdoe,192.168.138.2Create a file called
user-extractor.json.Import the data.
Validate that the enrichment loaded successfully.
Use the User data to enrich the telemetry. Run the following commands in the REPL.
Wait for the new configuration to be picked up by the running topology.
Review the Bro telemetry indexed into Elasticsearch. Look for records where the
ip_dst_addris192.168.138.2. Ensure that some of the messages have the following fields created from the enrichment.users:userusers:ipLegacy HBase Adapter
We are going to perform the same enrichment, but instead using the legacy HBase Adapter.
Use the User data to enrich the telemetry. Run the following commands in the REPL.
Wait for the new configuration to be picked up by the running topology.
Review the YAF telemetry indexed into Elasticsearch. Look for records where the
ip_dst_addris192.168.138.2. Ensure that some of the messages have the following fields created from the enrichment.enrichments:hbaseEnrichment:ip_dst_addr:user:ipenrichments:hbaseEnrichment:ip_dst_addr:user:userPull Request Checklist