您的位置:首页 > 其它

zookeeper的简单安装以及基于intellij idea的可视化工具的使用

2016-10-30 20:58 1281 查看
zookeeper的简单介绍--->直接用在线百度翻译的官网的简介
         Zookeeper是一个维护配置信息、命名、提供分布式同步和提供群组服务的集中式服务。这些各种类型的服务以某种形式被分布式应用程序使用。每当应用程序实现这些服务都不可避免的引入大量的修复BUG和竞争条件的工作。因为实现这些服务的难度在于应用最初通常跳过它们,使应用程序在发生变化时不易维护并难以管理。即使做对了,当应用程序已经部署后,不同服务的实现也将会导致管理的复杂性。

         Zookeeper是一个高性能的分布式系统的协调服务。它暴露公共的服务:像命名、配置管理、同步、和群组服务在一个简单的接口里,所以你没有必要从头开始实现它们。你可以使用现成的Zookeeper去实现共识、群组管理、领导人选举和业务协议。并且你可以在它的基础之上建立自己的特定的需求。

1.从官网上直接下载最新的zookeeper并解压到某一硬盘根目录下(方便操作)地址:http://zookeeper.apache.org/

2.在zookeeper的conf目录下添加zoo.cfg文件(之所这么命名是因为启动的时候默认会以此文件为指定的配置文件启动,而启动的时候应该可以指定自定义的配置文件暂时还没学习到这部分知识),内容如下:

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance #
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1

3.命令窗口模式进入zookeeper的bin目录下,输入zkServer.cmd回车即可启动成功,如下图所示



以上部分即为简单的安装以及启动zookeeper的步骤,下面介绍界面可视化使用管理zookeeper的方法

基于intellij idea的可视化工具的使用
1安装zookeeper插件



2配置zookeeper连接信息



3开始管理zookeeper

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐