Saturday, March 19, 2022

Kafka on Ubuntu 20.04

I used this post:

https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-20-04

but I downloaded latest Kafka for me:

 https://downloads.apache.org/kafka/3.1.0/

Then I started to install zookeeper with simple article, but service was not started:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-an-apache-zookeeper-cluster-on-ubuntu-18-04

Then I found this Knowledge Base with script:

https://kb.altinity.com/altinity-kb-setup-and-maintenance/altinity-kb-zookeeper/install_ubuntu/

Screept looks good, but zookiper command was not waitlisted, a fix is from answer:

https://stackoverflow.com/questions/62667788/how-do-i-initialize-the-whitelist-for-apache-zookeeper

A configuration should be in sub folder:

cat <<EOF | sudo tee /opt/zookeeper/zookeeper.properties

initLimit=20

syncLimit=10

maxSessionTimeout=60000000

maxClientCnxns=2000

preAllocSize=131072

snapCount=3000000

dataDir=/var/lib/zookeeper/data

dataLogDir=/var/lib/zookeeper/logs # use low-latency disk!

clientPort=2181

#clientPortAddress=nthk-zoo1.localdomain

autopurge.snapRetainCount=10

autopurge.purgeInterval=1

4lw.commands.whitelist=*

EOF

The latest for enable Kafka is disable auto generated cluster to use simple mode:

https://stackoverflow.com/questions/67705738/problem-with-kafka-failed-with-result-exit-code-status-1-failure



No comments:

debug magazine archive

  71 jounals still available on issuu with great story of netlabels time.  debug_mag Publisher Publications - Issuu