(vi) Zookeeper visual interface Zkui

Source: Internet
Author: User

Zookeeper node Visualization interface There are many kinds of, I use Zkui, more intuitive, and can import files, his git address: Https://github.com/DeemOpen/zkui.

Use

1, from GitHub can be downloaded, maven clean install into a jar, run Zkui-2.0-snapshot.jar or directly in the compiler to run the main function, start the jetty plug-in.

2, configuration file Config.cfg zookeeper related configuration as follows

#Server Port serverport=9090 #Comma seperated List of all the zookeeper servers zkserver=127.0.0.1:2181,127.0.0.1:2182,12 7.0.0.1:2183 #Http Path of the repository.
Ignore if you dont intent to upload files from repository. scmrepo=http://myserver.com/@rev1 = #Path appended to the repo URL.
Ignore if you dont intent to upload files from repository.
Scmrepopath=//appconfig.txt #if set to True then Userset are used for authentication, else LDAP authentication is used. Ldapauth=false ldapdomain=mycompany,mydomain #ldap authentication URL.
Ignore If using file based authentication. ldapurl=ldap://<ldap_host>:<ldap_port>/dc=mycom,dc=com #Specific roles for LDAP authenticated users.
Ignore If using file based authentication. ldaproleset={"Users": [{"username": "Domain\\user1", "Role": "Admin"}]} Userset = {"Users": [{"username": "admin", "pas Sword ":" 123456 "," Role ":" ADMIN "},{" username ":" AppConfig "," Password ":" AppConfig "," Role ":" USER "}]} #Set to prod in pro Duction and Dev in Local.
Setting to Dev would clear history each time. Env=prod jdbcclass=org.h2.driver jdbcurl=jdbc:h2:zkui jdbcuser=root jdbcpwd=manager #If you want to use MySQL db to store
Comment The H2 db section.
#jdbcClass =com.mysql.jdbc.driver #jdbcUrl =jdbc:mysql://localhost:3306/zkui #jdbcUser =root #jdbcPwd =manager
Loginmessage=please login using Admin/manager or Appconfig/appconfig.
#session Timeout 5 mins/300 secs. sessiontimeout=300 #Default 5 Seconds to keep short lived ZK sessions. 
If you had large data then the read would take more than-seconds so increase this accordingly.
#A bigger zksessiontimeout means the connection would be held longer and resource consumption would be is high.
Zksessiontimeout=5 #Block PWD exposure over rest call.
Blockpwdoverrest=false #ignore Rest of the props below if Https=false. Https=false Keystorefile=/home/user/keystore.jks Keystorepwd=password Keystoremanagerpwd=password # The default ACL to Use the for all creation of nodes. If left blank and then all nodes'll be universally accessible # Permissions is based on single character flags:c (Create), R (Read), W (write) , d (delete), a (admin), * (All) # For example defaultacl={"ACLs": [{"Scheme": "IP", "id": "192.168.1.192", "perms": "*"}, {" Scheme ":" IP ", id": "192.168.1.0/24", "perms": "R"}] defaultacl=

ServerPort accesses the port number of the ZK UI, the default is the 9090,zkserver Zookeeper cluster node, Userset: username role and its password settings, where the admin password is set to 123456.


3. Start the jar in Linxu, or start the main function in your local compiler, and the node in the relevant configuration in the Localhost:9090,zookeeer can be seen in the visual interface. The interface is as follows



Next, Java operation zookeeper, add delete node

Welcome Advice ~






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.