Zookeeper可视化工具
2018-08-28 本文已影响391人
sprainkle
zkui
简介
zkui它提供了一个管理界面,可以针对zookeepr的节点值进行CRUD操作,同时也提供了安全认证。
下载安装
- 下载
$ git clone https://github.com/DeemOpen/zkui.git
Cloning into 'zkui'...
remote: Counting objects: 527, done.
remote: Total 527 (delta 0), reused 0 (delta 0), pack-reused 526
Receiving objects: 100% (527/527), 478.39 KiB | 164.00 KiB/s, done.
Resolving deltas: 100% (217/217), done.
- 打包
$ cd zkui
$ mvn clean package -DskipTests=true
... package info ...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.472 s
[INFO] Finished at: 2018-08-28T11:15:34+08:00
[INFO] ------------------------------------------------------------------------
- 运行
# 将config.cfg复制到上一步生成的jar文件所在目录。
$ cp config.cfg ./target/config.cfg
$ java -jar ./target/zkui-2.0-SNAPSHOT-jar-with-dependencies.jar
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.metadatatable.MetaDataTableImpl createIfNotExists
信息: Creating Metadata table: "PUBLIC"."schema_version"
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate migrate
信息: Current version of schema "PUBLIC": << Empty Schema >>
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate applyMigration
信息: Migrating schema "PUBLIC" to version 1
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate logSummary
信息: Successfully applied 1 migration to schema "PUBLIC" (execution time 00:00.081s).
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
注: 配置文件中的zookeeper地址默认是localhost:2181,若需要监听其他机器上的zk,修改
config.cfg
配置文件中的zkServer
配置。
- 测试
访问http://localhost:9090,如能正常访问并看到如下界面,则运行正常。
默认账密:
# 角色为ADMIN
username: admin
password: manager
# 角色为USER
username: appconfig
password: appconfig
zkui登录界面
-
主界面
主界面
完!!!