zkWeb is zookeeper web to manager and monitor zookeeper cluster with builtin H2 database.This is based on TaoBao God(yasenagat)'s zkWeb code,and have a big upgrade and modification,It can run as two methods:
- put to tomcat and execute it!
- java -jar to execute it!
yasenagat-zkweb svn: http://code.taobao.org/svn/zkweb/
- Upgrade depend jars include spring\zookeeper ...
- Upgrade easyui to EasyUI for jQuery 1.5.5.4、jQuery v1.12.4
- Optimize page layout,such as: multi-tabs switch,one zk to one tab;add filter within cfg pages.
- Support High version of Tomcat,and tested ok with tomcat 8
- Add zookeeper cluster's state-monitor function,and use four-word cmd to get state infomation
- Add zookeeper loop-check connect state
- Front-end web add i18n Internationalization plugin,Support english and zh_CN,and server-end data don't added this.
- Upgrade to use spring boot 2
- Add favicon.ico
- jsp -> Thymeleaf
zookeeper web管理和监控界面,使用内置的H2数据库,此版本基于淘宝大神yasenagat的zkWeb源码基础之上进行了大幅升级和修改,有两种运行方式:
- 直接将war包放入tomcat即可运行!
- 直接运行: java -jar
yasenagat-zkweb svn: http://code.taobao.org/svn/zkweb/
- 升级依赖的第三方库,包括spring、zookeeper等
- 升级easyui到EasyUI for jQuery 1.5.5.4、jQuery v1.12.4
- 优化页面布局,如:支持多TAB切换,一个zk连接一个TAB标签;在配置界面增加过滤器;
- 支持tomcat高版本,目前在tomcat8测试通过
- 增加zk集群状态的监控功能,使用了四字命令获取监控信息
- 增加zk集群自动检测连接状态功能
- 前端web增加i18n国际化插件,支持界面英文展示,注:服务端数据未支持国际化。
- 使用spring boot 2升级改造,可以不依赖tomcat
- 增加了浏览器图标favicon.ico
- jsp -> Thymeleaf
connected: https://user-images.githubusercontent.com/2204457/41921088-a39f7856-7994-11e8-8620-90cd81dc33ce.png
disconnected: https://user-images.githubusercontent.com/2204457/41921099-a9d53620-7994-11e8-868c-1da341334184.png
-
打jar包,webapp/resources无法访问,需修改代码addResourceHandlers: -
registry.addResourceHandler("/resources/**").addResourceLocations("classpath:/resources/", "classpath:/META-INF/resources/webapp/resources/");
-
打war包,webapp/resources被默认打包到根目录下导致无法访问,需要打包到WEB-INF/classes/resources
-
改造为使用Thymeleaf模版后,目前已经将webapp目录移除了
-
pom-jar.xml for jar,pom-tomcat.xml for tomcat
参考src下的Dockerfile文件中的使用说明
- 使用curator代替原生zk