发布时间:2018-05-10 18:16:22
0.基类连接服务器 ,设置default watch点击(此处)折叠或打开package com.test.zookeeper.queue;import java.io.IOException;import org.apache.zookeeper.WatchedEvent;import org.apache.zookeeper.Watcher;.........【阅读全文】
发布时间:2018-05-10 17:18:02
0.基类 连接服务器 ,设置default watch点击(此处)折叠或打开package com.test.zookeeper.barrier;import java.io.IOException;import org.apache.zookeeper.WatchedEvent;import org.apache.zookeeper.Watcher;.........【阅读全文】
发布时间:2018-05-09 19:43:01
1.创建组点击(此处)折叠或打开import java.io.IOException;import java.util.concurrent.CountDownLatch;import org.apache.zookeeper.CreateMode;import org.apache.zookeeper.KeeperException;import org.apache.zooke.........【阅读全文】
发布时间:2018-05-09 18:19:38
安装jdk,并且配置jdk的环境变量下载zookeeper的安装包,上传到linux集群环境下下载地址:http://zookeeper.apache.org/解压安装包 tar -zxvf zookeeper-3.4.7.tar.gz -C path进入conf目录,复制zoo-sample.cfg为zoo.cfg,通过修改zoo.cfg来对zookeeper进行配.........【阅读全文】