Zookeeper Inspector unable to connect to zookeeper问题

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是一个分布式的,开放源码的分布式应用程序协调服务,是GoogleChubby一个开源的实现,是HadoopHbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、域名服务、分布式同步、组服务等。
ZooKeeper的目标就是封装好复杂易出错的关键服务,将简单易用的接口和性能高效、功能稳定的系统提供给用户。
ZooKeeper包含一个简单的原语集,提供JavaC的接口。
ZooKeeper代码版本中,提供了分布式独享锁、选举、队列的接口,代码在$zookeeper_home\src\recipes。其中分布锁和队列有JavaC两个版本,选举只有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官网

总结:大家如果有什么疑问或者建议的地方,可直接留言评论!本人会一一回复!!

如果小白的博客有建议或批评的,下方留言即可!如果觉得小白还不错的,留下你的点赞、关注和收藏哦!!

猜你喜欢

转载自blog.csdn.net/weixin_44425934/article/details/108119903