title: How to enable JMX port for Zookeeper server
body: <p>I am using Zookeeper version 3.4.6. I am trying to enable JMX for the same. Following below Url. Below are the changes I did in my zkServer.sh file</p>
  
  <p><a href="https://stackoverflow.com/questions/41457491/how-do-i-enable-remote-jmx-with-port-in-zookeeper-zkserver-cmd/53761625">How do i enable remote jmx with port in zookeeper zkServer.cmd</a></p>
  
  <pre><code> ZOOMAIN="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=2989 -Djava.rmi.server.hostname=HDP.trinityiot.local org.apache.zookeeper.server.quorum.QuorumPeerMain"
  </code></pre>
  
  <p>Zookeeper is starting but JMX port is not enabled.</p>