Install Apache Kafka in Ubuntu 14.04

This post just shows you the way to install Kafka easily. To run Kafka, we have to have Zookeeper. So we will install Zookeeper firstly. After that, We install Kafka. To get the links to download the latest version of Kafka and Zookeeper, you can find them in Apache Foundation website.

Install Java (if needed)

1. Install Zookeeper

You can get the binary download link here: http://zookeeper.apache.org/releases.html#download

2. Install Kafka

You can get the binary download link here: http://kafka.apache.org/downloads.html

And if you want to run Kafka run on startup and automatically restart if Kafka crashes, you should use Upstart in Ubuntu 14.04. The below is an example for kafka.conf: