Enable remote Jmx with port of journal node [ambari]
I wanna monitor the JMX metrics of Journal node, but cannot find a relative option in Ambari UI.
From the Hadoop source code, we can find that:
elif [ "$COMMAND" = "journalnode" ] ; then CLASS='org.apache.hadoop.hdfs.qjournal.server.JournalNode' HADOOP_OPTS="$HADOOP_OPTS $HADOOP_JOURNALNODE_OPTS"
Ref: github.com
So we ca open remote Jmx port of Journal node just like the way of namenode/datanode:
// Add the line below in hadoop-env export HADOOP_JOURNALNODE_OPTS="${HADOOP_JOURNALNODE_OPTS} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=****"