zookeeper
kanpiaoxue
这个作者很懒,什么都没留下…
展开
-
Curator的pom.xml(可做Maven的pom.xml的范例)
<?xml version="1.0" encoding="UTF-8"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed...原创 2014-08-06 19:10:21 · 884 阅读 · 0 评论 -
Zookeeper Leader选举工具类
这是使用apache.org下面开源的curator框架写的一个Leader选举的工具类。对于 curator 的介绍,如下:http://curator.apache.org/ 本程序用到的pom.xml<org.slf4j.version>1.6.6</org.slf4j.version><commons-logging.version&...2014-08-07 14:24:38 · 171 阅读 · 0 评论 -
zookeeper常用命令
参考一:ZooKeeper的安装与部署 参考二:Zookeeper介绍及安装部署 假设3个节点组成了zookeeper集群1、连接zk集群:bin/zkCli.sh -server localhost:2181,localhost:2182,localhost:2183 2、查看zk集群中谁是leader 和当前zk的状态:bin/zkServer.sh ...原创 2018-01-10 14:50:01 · 183 阅读 · 0 评论