-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[bitnami/kafka] Kafka JMX Exporter , Port already in use: 5555 #12917
Comments
Hi @fmulero @javsalgar : Please help me on above issue. |
When JMX exporter is enabled, JMX port in kafka container is set to 5555 and jmx-exporter sidecar use it to collect the metrics and expose them in port 5556. Kafka commands use the same env var ( As workaround you can run your commands in a separate client: $ kubectl run kafka-client --restart='Never' -it --image docker.io/bitnami/kafka:3.3.1-debian-11-r1 --namespace default --command -- bash
I have no name!@kafka-client:/$ kafka-topics.sh --list --bootstrap-server kafka.default.svc.cluster.local:9092 |
Thank you @fmulero, for your inputs. I am following above workaround. Once it is fixed, Please let me know. Is there any grafana dashboards for Kafka? can you please share it for troubleshooting purpose. |
There is no real issue to fix here, clients should run outside of the server pods. If you like to contribute using a different JMX listener configuration for the kafka container The Bitnami team will be happy to review it and provide feedback. Here you can find the contributing guidelines. |
Thank you @fmulero for your inputs. |
if you set $ JMX_PORT=0 kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test |
Name and Version
bitnami/kafka
What steps will reproduce the bug?
Hi Team,
We are using bitnami Kafka helm charts. We have enabled the JMX Exporter.
When we ran the Kafka console commands, I am getting below error(java.rmi.server.ExportException: Port already in use: 5555)
For WorkAround,I am running below commands.
Is there any permanent solution to fix this.
Thanks.
Are you using any custom parameters or values?
No response
What is the expected behavior?
No response
What do you see instead?
java.net.BindException: Address already in use (Bind failed)
Additional information
No response
The text was updated successfully, but these errors were encountered: