-
Notifications
You must be signed in to change notification settings - Fork 505
METRON-2169: Upgrade to Kafka 2.0.0 and Storm 1.2.1 #1490
METRON-2169: Upgrade to Kafka 2.0.0 and Storm 1.2.1 #1490
Conversation
nickwallen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really clean. A few feedback items, but I think this is really close.
metron-platform/metron-elasticsearch/metron-elasticsearch-common/pom.xml
Outdated
Show resolved
Hide resolved
...-integration-test/src/main/java/org/apache/metron/integration/components/KafkaComponent.java
Outdated
Show resolved
Hide resolved
metron-interface/metron-rest/src/test/java/org/apache/metron/rest/config/TestConfig.java
Outdated
Show resolved
Hide resolved
…3.1' into kafka-upgrade-v3 # Conflicts: # dependencies_with_url.csv # pom.xml
|
The latest commit fixes this failed test in My guess is that this upgrade changed the behavior of the Kafka Spout to close the consumer when a topology is killed. |
|
I still this error happening intermittently: I am able to narrow it down to the |
|
Hey @merrimanr - Your test script mentions validating these changes under kerberos. That might not be necessary based on your changes in this PR. I would suggest that we hold off on validating kerberos until we have all the upgrade work merged into the feature branch. This makes sense to me because (1) we are working on a feature branch and (2) our code doesn't really do much with kerberos, it is just provided by the underlying platform. |
|
+1 Thanks @merrimanr . This looks good. I ran this up using the CentOS 7 dev environment. I validated that the topologies consumed telemetry and poked and prodded them by stopping, starting, and rebalancing. I also ensured that I can access Kafka using the KAFKA_* stellar functions. No problems. |
|
This has been merged into the feature branch as 15e5276 |
Contributor Comments
This PR upgrades the Kafka client dependency from 0.10.0.1 to 2.0.0 and the Storm dependency from 1.0.3 to 1.2.1. Overall this upgrade was pretty straightforward. The only complex changes involved upgrading the KafkaComponent class to use new Kafka admin and testing classes.
@mmiklavc, all the comments you made on #1453 should be addressed here with the exception of excluding Storm. I had to upgrade both Storm and Kafka versions or I get this.
@nickwallen, all the comments you made on #1488 should be addressed as well.
To isolate Kafka/Storm from the rest of the components, I upgraded these versions independently in all Maven profiles. This will allow us to test newer client versions in full dev without having to upgrade all clients. I created a Jira to reconcile these once we complete the upgrade work.
Testing
Right now I have only verified that it builds and tests pass. I plan on running these tests in full dev:
Verify full dev comes up without error and data is landing in ES
Verify all REST Kafka functions are working as expected
Verify all Stellar Kafka functions are working as expected
Verify Kerberos
Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:
For code changes:
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?
For documentation related changes:
Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via
site-book/target/site/index.html:Have you ensured that any documentation diagrams have been updated, along with their source files, using draw.io? See Metron Development Guidelines for instructions.
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.