安装zkui

zookeeper节点的可视化界面有很多种,我使用的是zkui,比较直观,而且可以导入文件,他的Git地址:                     https://github.com/DeemOpen/zkui。

使用

1、 从github上可以下载下来,maven clean install成jar,运行zkui-2.0-SNAPSHOT.jar 或者直接在编译器中运行main函数,启动jetty插件。

2、配置文件config.cfg  zookeeper相关配置如下

  1. #Server Port
  2. serverPort=9090
  3. #Comma seperated list of all the zookeeper servers
  4. zkServer=127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183
  5. #Http path of the repository. Ignore if you dont intent to upload files from repository.
  6. scmRepo=http://myserver.com/@rev1=
  7. #Path appended to the repo url. Ignore if you dont intent to upload files from repository.
  8. scmRepoPath=//appconfig.txt
  9. #if set to true then userSet is used for authentication, else ldap authentication is used.
  10. ldapAuth=false
  11. ldapDomain=mycompany,mydomain
  12. #ldap authentication url. Ignore if using file based authentication.
  13. ldapUrl=ldap://<ldap_host>:<ldap_port>/dc=mycom,dc=com
  14. #Specific roles for ldap authenticated users. Ignore if using file based authentication.
  15. ldapRoleSet={"users": [{ "username":"domain\\user1" , "role": "ADMIN" }]}
  16. userSet = {"users": [{ "username":"admin" , "password":"123456","role": "ADMIN" },{ "username":"appconfig" , "password":"appconfig","role": "USER" }]}
  17. #Set to prod in production and dev in local. Setting to dev will clear history each time.
  18. env=prod
  19. jdbcClass=org.h2.Driver
  20. jdbcUrl=jdbc:h2:zkui
  21. jdbcUser=root
  22. jdbcPwd=manager
  23. #If you want to use mysql db to store history then comment the h2 db section.
  24. #jdbcClass=com.mysql.jdbc.Driver
  25. #jdbcUrl=jdbc:mysql://localhost:3306/zkui
  26. #jdbcUser=root
  27. #jdbcPwd=manager
  28. loginMessage=Please login using admin/manager or appconfig/appconfig.
  29. #session timeout 5 mins/300 secs.
  30. sessionTimeout=300
  31. #Default 5 seconds to keep short lived zk sessions. If you have large data then the read will take more than 30 seconds so increase this accordingly.
  32. #A bigger zkSessionTimeout means the connection will be held longer and resource consumption will be high.
  33. zkSessionTimeout=5
  34. #Block PWD exposure over rest call.
  35. blockPwdOverRest=false
  36. #ignore rest of the props below if https=false.
  37. https=false
  38. keystoreFile=/home/user/keystore.jks
  39. keystorePwd=password
  40. keystoreManagerPwd=password
  41. # The default ACL to use for all creation of nodes. If left blank, then all nodes will be universally accessible
  42. # Permissions are based on single character flags: c (Create), r (read), w (write), d (delete), a (admin), * (all)
  43. # For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", id":"192.168.1.0/24", "perms":"r"}]
  44. defaultAcl=

serverPort访问zk ui的端口号,默认是9090,zkServer zookeeper集群节点,userSet:用户名角色及其密码设置,在这里设置的admin密码为123456。

3、在linxu中启动jar,或者是在自己本地的编译器中启动main函数,输入localhost:9090,zookeeer中相关配置的节点就可以在可视化界面中看到。界面如下

下一篇,Java操作zookeeper,添加删除节点

欢迎指教~

转载: http://blog.csdn.net/lovesummerforever/article/details/48997797

bigdata_zookeeper 可视化界面zkui的更多相关文章

  1. awt可视化界面上传数据到mysql,jsp通过jdbc方式查询数据库,并将结果打印在网页上

    今天尝试写一个小demo实现下之前看过的代码,目的了解不同文件的数据访问,掌握如何获取前台数据,如何将数据库的数据在前端页面展示. awt可视化界面可已实现提交数据到数据库,也可查询数据在控制台打印. ...

  2. GDB-Dashboard-GDB可视化界面

    项目地址 https://github.com/cyrus-and/gdb-dashboard 项目介绍 gdb-dashboard是一个gdb的可视化界面,可以通过web或者终端来现实可视化信息,支 ...

  3. Ubuntu mysql安装,还有可视化界面

    安装mysql sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install lib ...

  4. Solr学习笔记---部署Solr到Tomcat上,可视化界面的介绍和使用,Solr的基本内容介绍,SolrJ的使用

    学习Solr前需要有Lucene的基础 Lucene的一些简单用法:https://www.cnblogs.com/dddyyy/p/9842760.html 1.部署Solr到Tomcat(Wind ...

  5. docker swarm 集群及可视化界面的安装及配置

    docker swarm 集群及可视化界面的安装及配置 2016-12-14 16:08:46 标签:swarm consul registrator 原创作品,允许转载,转载时请务必以超链接形式标明 ...

  6. 可视化界面:ElasticSearch Head,最方便的是直接下载谷歌浏览器扩展程序

    可视化界面:ElasticSearch Head,最方便的是直接下载谷歌浏览器扩展程序

  7. 关于Eclipse上使用可视化设计界面(Java EE 使用可视化界面设计)

    Eclipse下可视化界面实现——WindowBulider安装 第一步: WindowBuilder官方下载安装说明地址:http://www.eclipse.org/windowbuilder/d ...

  8. CentOS7安装GNOME可视化界面和如何配置IP地址

    本人在虚拟机安装 CentOS7 1,检查一下我们已经安装的软件以及可以安装的软件,用命令 yum grouplist 2,然后安装我们需要的图形界面软件,GNOME(GNOME Desktop) 这 ...

  9. SwaggerUI+SpringMVC——构建RestFul API的可视化界面

    今天给大家介绍一款工具,这个工具眼下可预见的优点是:自己主动维护最新的接口文档. 我们都知道,接口文档是非常重要的,可是随着代码的不断更新,文档却非常难持续跟着更新,今天要介绍的工具,完美的攻克了这个 ...

随机推荐

  1. ds finder 唤醒

    http://www.hangge.com/blog/cache/detail_594.html

  2. Netty+WebSocket简单实现网页聊天

    基于Netty+WebSocket的网页聊天简单实现 一.pom依赖 <dependency>        <groupId>io.netty</groupId> ...

  3. 用IBM WebSphere DataStage进行数据整合: 第 1 部分 分类: H2_ORACLE 2013-08-23 11:20 688人阅读 评论(0) 收藏

    转自:http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0602zhoudp/ 引言 传统的数据整合方式需要大量的手工 ...

  4. Delphi 获取Internet缓存文件 -- FindFirstUrlCacheEntry FindNextUrlCacheEntry

    下面是我写的一个函数,把所有的缓存文件路径添加到一个字符串列表中,直接看代码,带了注释.另外还有删除缓存等等大家自己到msdn找找. 需要引用 WinInet // 获取Internet缓存文件 fu ...

  5. arm交叉编译Valgrind

    1. wget http://valgrind.org/downloads/valgrind-3.9.0.tar.bz2 tar xvf valgrind-3.9.0.tar.bz2 cd valgr ...

  6. 【47.95%】【codeforces 554C】Kyoya and Colored Balls

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  7. [Angular Directive] Structure directive and <template>

    The structure directive is just a sugar syntax of <template>. Such as: <div *ngIf="nam ...

  8. 基于 Android NDK 的学习之旅-----资源释放

    做上一个项目的时候因为与C引擎交互频繁,有时候会突然莫名其妙的的整个应用程序直接挂掉.因为我是学Java 开始的,所以对主动释放内存没多大概念(GC直接帮忙回收),后查询原因才知道是因为JNI 有些对 ...

  9. 三星语音AI助理背后的华人身影—73岁科技人三度创业成功(孙子兵法:道、天、地、将、法)

    我绝对不当老二,也不当老大,我要当霸主!”说这句话的是富迪科技董事长黄炎松.他还把“独霸”当作公司愿景宣言,大剌剌的放在美国总公司进门最显眼的墙上.   集微网消息,据台湾商业周刊报道,黄炎松,是台湾 ...

  10. Erlang中频繁发送远程消息要注意的问题

    http://avindev.iteye.com/blog/76373 注:这篇文章可能会有争议,欢迎提出意见 在Erlang中,如果要实现两个远程节点之间的通信,就需要通过网络来实现,对于消息发送, ...