WIP: initial kafka integration for whylogs java client#20
Draft
cswarth wants to merge 7 commits intowhylabs:mainlinefrom
Draft
WIP: initial kafka integration for whylogs java client#20cswarth wants to merge 7 commits intowhylabs:mainlinefrom
cswarth wants to merge 7 commits intowhylabs:mainlinefrom
Conversation
added 7 commits
February 23, 2021 10:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Environment Setup
Clone the whylogs-examples repo from GitHub and work in the java/kafka-avro/ subdirectory
Use docker-compose to bring up a basic Kafka cluster and control dashboard.
Visit http://127.0.0.1:9021 to see the kafka health dashboard. From the dashboard you can see assess the health f the kefka cluster and see any active topics.
Schema Definition
These java examples are built using
gradle.If you already have your Java environment set up, you should not need to install anything more to build these examples.
If you get an error...
Could not initialize class org.codehaus.groovy.reflection.ReflectionCacheTry upgrading your gradle installation.
I upgraded from 6.1 to 6.3. IntelliJ warns me that Gradle 6.3 is incompatible with
amazon-corretto-15.jdk but I have not seen ill-effects yet.
Run the demos
There are two separate demos that carry out the duties of a Kafka Producer and Consumer.
The Producer and Consumer demos can be run sequentially in the same window as the events written are persistent in Kafka.