-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon: Stream all Kubernetes events to a topic #60
Closed
Conversation
This file contains 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
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.xerial.snappy.Snappy at org.xerial.snappy.SnappyInputStream.readFully(SnappyInputStream.java:145) at org.xerial.snappy.SnappyInputStream.readHeader(SnappyInputStream.java:99) at org.xerial.snappy.SnappyInputStream.<init>(SnappyInputStream.java:59) at org.apache.kafka.common.record.CompressionType$3.wrapForInput(CompressionType.java:82) ... 40 more
solsson
force-pushed
the
addon-kube-events-topic
branch
from
August 5, 2017 05:08
630f6b1
to
8935cf5
Compare
12 tasks
and kafkacat will produce each line separately
we don't send error messages to the topic (even if it's json -- format is different and it's pretty printed)
to see the error message (like missing RBAC) you basically have to run the curl command. I'd like startup to be as fast as possible, to not miss events, so I hesitate to add checks.
solsson
force-pushed
the
addon-kube-events-topic
branch
from
October 26, 2017 20:36
aef3760
to
fc5a836
Compare
Tried to improve error handling, for example when RBAC is missing, but with no real success. You basically need to exec to the pod (which is most likely crashlooping fast) to try the curl manually. Status noted in fc5a836. TODO test if the curl error (with -f) gets into the topic, thus breaking consumers that assume they will get JSON. Status on that is in d628275. |
Silly change, but 0.8 days is very short. Google helped me verify the math.
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.
A quite interesting log with messages like (
kubectl -n test-kafka logs -l test-target=events-topic
):(#31 should take note about this particular event)
Reopens #39.
Includes RBAC policy from #59