Created
April 24, 2017 13:51
-
-
Save patmandenver/49919133d688a7ff585966d63885f4a7 to your computer and use it in GitHub Desktop.
JMX info
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
#Some example JMX info add it to you kafka start up script | |
# sometimes located at /opt/kafka/kafka_2.11-0.10.1.0/bin/kafka-server-start.sh | |
#Should retrieve local IP address | |
IP_ADDR=`ip route get 8.8.8.8 | awk '{print $NF; exit}'` | |
export KAFKA_OPTS="$KAFKA_OPTS -Djava.rmi.server.hostname=$IP_ADDR" | |
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.port=9090" | |
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.authenticate=false" | |
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.ssl=false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment