Project

General

Profile

Support #890

Install Zookeeper on FreeBSD

Added by Daniel Curtis about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Distributed Computing
Target version:
Start date:
04/14/2017
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

This is a guide for setting up Zookeeper on FreeBSD 10.

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    

Install Zookeeper

  • Install zookeeper:
    pkg install zookeeper
    
  • Set the machine id:
    echo 1 > /var/db/zookeeper/myid
    chown -R zookeeper:zookeeper /var/db/zookeeper
    
  • Create a config from the sample config:
    cp /usr/local/etc/zookeeper/zoo_sample.cfg /usr/local/etc/zookeeper/zoo.cfg
    
  • Edit the zookeeper config:
    vi /usr/local/etc/zookeeper/zoo.cfg
    
    • And modify the config accordingly:
      # 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=/var/db/zookeeper
      # the port at which the clients will connect
      clientPort=2181
      #clientPortAddress=192.168.1.100
      
      # specify all zookeeper servers
      #server.1=192.168.1.101:2888:3888
      #server.2=192.168.1.102:2888:3888
      #server.3=192.168.1.103:2888:3888
      
  • Start and enable zookeeper at boot:
    echo 'zookeeper_enable="YES"' >> /etc/rc.conf
    service zookeeper start
    

Resources

#1

Updated by Daniel Curtis about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis about 7 years ago

  • Category changed from Cryptocurrency to Distributed Computing
#3

Updated by Daniel Curtis about 7 years ago

  • Description updated (diff)
#4

Updated by Daniel Curtis almost 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF