This repository was archived by the owner on Aug 20, 2025. It is now read-only.
METRON-2219 Remove Legacy HBase Client #1485
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
Updates the
SensorEnrichmentConfigControllerto use the HBase 2.0.2 APIs. This component is part of the Enrichment Coprocessor mechanism.Updates the
HBaseCacheWriterto use the HBase 2.0.2 APIs. This component is part of the Enrichment Coprocessor mechanism.Removes the
LegacyHBaseClientwhich uses the old, deprecated HBase APIs. This was previously left in-place (in METRON-2175 Introduce HBase Connection Abstractions for HBase 2.0.2 #1456) to allow the code base to continue to function as components were upgraded to 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 Coprocessor
Run the following command from the CLI - you should see the coprocessor in the table attributes. Ambari should set this up as part of the MPack installation.
Before we start adding enrichments, let's verify the enrichment_list table is empty
Go to Swagger
Click the
sensor-enrichment-config-controlleroption.Click the
GET /api/v1/sensor/enrichment/config/list/available/enrichmentsoption.And finally click the "Try it out!" button. You should see an empty array returned in the response body.
Now, let's perform an enrichment load of some CSV data. We'll do this as the metron user
Download the Alexa 1m dataset:
Create an extractor.json for the CSV data by editing
extractor.jsonand pasting in these contents:Import the data.
Validate that the data was loaded. Expect at least 10k records.
Confirm that the enrichment added in the previous steps were 'found' by the coprocessor.
sensor-enrichment-config-controlleroption.GET /api/v1/sensor/enrichment/config/list/available/enrichmentsoption.Click the "Try it out!" button. You should see a array returned with the value of each enrichment type that you have loaded.
[ "user" ]Pull Request Checklist