Skip to content

Error connecting to jmx service #3938

Discussion options

You must be logged in to vote

Problem solved, i had to add the following configuration for kafka container

        - "JMX_PORT=9999"
        - "KAFKA_JMX_OPTS=-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname={{ansible_hostname}} -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.rmi.port=9999"

I was putting them in the server.properties file for kafka but apparently they are not loaded.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cassanellicarlo
Comment options

@cassanellicarlo
Comment options

@cassanellicarlo
Comment options

Answer selected by Haarolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3936 on June 14, 2023 01:31.