How to build Zookeeper DEB for Ubuntu14.04

You need the zookeeper 3.4.6 package for Ubuntu 14.04 LTS

 wget http://apache.arvixe.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz

 gzip -dc zookeeper-3.4.6.tar.gz | tar xf –

Remove

vi src/packages/deb/zookeeper.control/control

in file remove line

Depends: sun-java6-jre

You need a few packages to compile it

apt-get install python-setuptools libcppunit-dev build-essential libboost-all-dev cmake flex libtool ant

and then start build process

/zookeeper-3.4.6# ant deb

this takes a few minutes, the deb packe can be found under /build

And a complete build run

Click to access build.pdf

Some found here

https://grockdoc.com/zookeeper/3.4.6/articles/install-an-apache-zookeeper-cluster-for-production-ubuntu_3a5bdf44-9d59-45a7-9b44-d83960a0ef18