![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Zookeeper
文章平均质量分 60
Zookeeper介绍、部署,curator使用
冷雨夜中漫步
这个作者很懒,什么都没留下…
展开
-
Zookeeper报错:Unable to read additional data from server sessionid 0x
报错信息INFO [main-SendThread(localhost:12181):ClientCnxn$SendThread@959] - Socket connection established, initiating session, client: /xxxxxx:38806, server: localhost/xxxxx:12181INFO [main-SendThread(localhost:12181):ClientCnxn$SendThread@1240] - Unable t原创 2022-03-23 14:41:53 · 18586 阅读 · 0 评论 -
ZK报错QuorumPeerConfig$ConfigException: Unrecognised peertype: 2181
报错信息2022-05-04T02:40:15.055579600Z ZooKeeper JMX enabled by default2022-05-04T02:40:15.058493700Z Using config: /opt/zookeeper/bin/../conf/zoo.cfg2022-05-04T02:40:16.454329400Z 2022-05-04 02:40:16,443 [myid:] - INFO [main:QuorumPeerConfig@135] - Readi原创 2022-05-04 10:46:41 · 992 阅读 · 0 评论 -
zk报错:java.lang.IllegalStateException: Expected state [STARTED] was [LATENT]
zk报错:java.lang.IllegalStateException: Expected state [STARTED] was [LATENT]原因:客户端使用时没有start而直接调用了其他方法解决办法:public CuratorFramework getCuratorFramework() throws InterruptedException { RetryPolicy retryPolicy = new ExponentialBackoffRetry(Integer.parse原创 2022-04-02 18:33:04 · 6418 阅读 · 0 评论 -
Zookeeper入门(2)——Curator介绍与引入
二、Curator介绍与引入Apache Curator1、Curator是什么?Apache Curator是Apache ZooKeeper的Java/JVM客户端库,这是一个分布式协调服务。它包括一个高级API框架和实用程序,使使用Apache ZooKeeper变得更容易和更可靠。它还包括常见用例和扩展功能,如服务发现和Java 8异步DSL。2、Curator各个模块介绍GroupID/OrgArtifactID/NameDescriptionorg.apache原创 2022-04-08 21:58:25 · 1315 阅读 · 0 评论 -
Zookeeper入门(3)——Leader选举与分布式锁
@Configuration@ConfigurationProperties(prefix = "zookeeper")@Getter@Setter@ToStringpublic class ZkProp { @Value("address") private String address; @Value("maxRetries") private String maxRetries; @Value("sleepTimeMs") private原创 2022-04-08 22:01:11 · 1839 阅读 · 0 评论 -
Zookeeper入门(1)——zookeeper的基本概念
【项目地址】 从零开始学习springmvc如果觉得有用可以关注一下公众号:码字不易,求赞求关注zookeeper的基本概念一、Zookeeper1、Zookeeper是什么?2、Zookeeper的作用3、Zookeeper的特性4、Zookeeper的架构5、 数据模型和分层命名空间5.1 命名空间5.2 节点类型(Znode)5.3 事件机制(监听通知机制,Watcher)5.3.1 Watcher特性5.3.2 Watcher流程处理6、Zookeeper的实现机制6.1 Paxos算法6.2原创 2022-02-27 18:38:42 · 1208 阅读 · 0 评论