【Zookeeper】分布式协做框架-初始环境搭建

前提:本文中采用单机部署(Single Server Deployed)做为尝试    安装部署官方文档html

Zookeeper依赖:java

  •    java7
  •    python2.7.6

安装测试步骤:python

  1. 下载项目安装包 wget http://apache.org/dist/zookeeper/zookeeper-3.5.2-alpha/zookeeper-3.5.2-alpha.tar.gz
  2. 解压缩
  3. conf 文件夹下,cp zoo_sample.cfg zoo.cfg
  4. bin 目录下,./zkServer.sh start

 

注意事项:apache

  1. It's critical that you run Zookeeper under supervision, since Zookeeper is fail-fast and will exit the process if it encounters any error case. See here for more details.
  2. It's critical that you set up a cron to compact Zookeeper's data and transaction logs. The Zookeeper daemon does not do this on its own, and if you don't set up a cron, Zookeeper will quickly run out of disk space. See here for more details.

参考:storm文档python2.7

相关文章
相关标签/搜索