Support #890
Install Zookeeper on FreeBSD
Status:
Closed
Priority:
Normal
Assignee:
Category:
Distributed Computing
Target version:
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
- And modify the config accordingly:
- Start and enable zookeeper at boot:
echo 'zookeeper_enable="YES"' >> /etc/rc.conf service zookeeper start
Resources¶
Updated by Daniel Curtis over 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Updated by Daniel Curtis over 7 years ago
- Category changed from Cryptocurrency to Distributed Computing