【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

相關文章
相關標籤/搜索