Zookeeper Inspector - unable to connect to zookeeper问题
导语
鉴于网上没有关于
zk inspector
连接失败的文章及无用文章,特写此文
导语:zookeeper
之路-GUI
工具Zookeeper Inspector
作者:变优秀的小白
爱好:美式一定加冰!
注:如中途遇到不懂的地方,直接评论留言看到会马上答疑!
什么是zookeeper
官网:ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them, which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed.
百度:
ZooKeeper
是一个分布式的,开放源码的分布式应用程序协调服务,是Chubby
一个开源的实现,是Hadoop
和Hbase
的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、域名服务、分布式同步、组服务等。
ZooKeeper
的目标就是封装好复杂易出错的关键服务,将简单易用的接口和性能高效、功能稳定的系统提供给用户。
ZooKeeper
包含一个简单的原语集,提供Java
和C
的接口。
ZooKeeper
代码版本中,提供了分布式独享锁、选举、队列的接口,代码在$zookeeper_home\src\recipes
。其中分布锁和队列有Java
和C
两个版本,选举只有Java
版本。
什么是Zookeeper Inspector
一个基于zookeeper提效的GUI可视化工具,下面是主界面
连接Zookeeper遇到unable to connect to zookeeper问题
解决方法,一条命令搞定!
进入zookeeper目录下的bin文件夹,输入命令zkServer start/zkServer.sh start
(启动zk服务)
- 原因可能有两种:
- 1.未启动zookeeper服务
- 2.启动了zookeeper服务,重复连接地址
相关链接
apache-zookeeper官网