-
Notifications
You must be signed in to change notification settings - Fork 848
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
Support mounting extra classes #516
Conversation
To enable this, the Spring Boot layout is changed from JAR to ZIP. This is similar to the JAR layout, but using PropertiesLauncher. The PropertiesLauncher allows extending the class path through the loader.path system property. Extended the README with an example.
@@ -64,4 +64,4 @@ ARGS="--add-opens=java.base/sun.nio.ch=ALL-UNNAMED -Xss256K \ | |||
$HEAP_ARGS \ | |||
$JVM_OPTS" | |||
|
|||
exec java $ARGS -jar /kafdrop*/kafdrop*jar ${CMD_ARGS} | |||
exec java $ARGS -Dloader.path=/extra-classes -jar /kafdrop*/kafdrop*jar ${CMD_ARGS} |
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.
If the dir is not mounted is not a problem right?
I mean what happen if dir doesn't exist?
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.
That's not an issue (tested it). It just doesn't load extra classes.
Nice feature! 🙏 @Bert-R |
Tried running this with an AWS MSK test cluster I have, but no luck getting it connect. Confirmed that my built JAR works with a local kafka instance on localhost:9092, and confirmed that I can connect to my MSK broker with a kafka Scala binary. Here's what I tried:
My
Then I run
|
You need more JARs than just the IAM one. If it still fails after adding all required JARs then please post the log of Kafdrop |
Hmmm, from my understanding only the IAM one is required (eg ixs to use the kafka standalone binary to connect only requires the IAM JAR). Here's the error: seems to be an issue connecting to the node (no errors w/ JARs):
|
Looks like something is wrong in your configuration settings, due to which Kafdrop cannot find Kafka. |
@andrewchoi5 Have you tested this? |
To enable this, the Spring Boot layout is changed from JAR to ZIP. This is similar to the JAR layout, but using PropertiesLauncher. The PropertiesLauncher allows extending the class path through the loader.path system property. Extended the README with an example.