JMX:
Installation configuration
1, modify the startup script zookeeper
we zkServer.sh
Find the boot parameters ZOOMAIN
Modified to the following values (modified a, add 4):
-Dcom.sun.management.jmxremote.local.only=false
# Ip address jconsole.exe connection (zk machine where ip)
-Djava.rmi.server.hostname=192.168.147.133
Port number # jconsole.exe connection
-Dcom.sun.management.jmxremote.port=8989
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
Is modified as follows:
ZOOMAIN="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Djava.rmi.server.hostname=192.168.147.135 -Dcom.sun.management.jmxremote.port=8989 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false org.apache.zookeeper.server.quorum.QuorumPeerMain"
2, the modification of other servers (same step)
If you need to manage multiple jmx zk servers, each server's startup scripts need to be modified as described above.
3, installation jdk (windows system)
Run jmx must be installed jdk
jdk installation slightly
4, start jconsole.exe
Jconsole.exe found in the native (jdk own tools, in general: Java \ jdk \ bin directory):
Double-click the point to open
Click the Connect button
Select: [] unsecured connection
ZooInspector:
Installation configuration
1. Download the file
https://issues.apache.org/jira/secure/attachment/12436620/ZooInspector.zip
2, extract ZooInspector.zip file
unzip click ZooInspector \ build \ will appear after the zookeeper-dev-ZooInspector.jar the following interface
3, connected ZK
Click on the top left of the green button, enter the address and port ZK Server
After a successful connection will be able to see the data node ZK in. (Zk find a lot of historical information in there, and there is no clear)