Kafka is a distributed streaming platform that is widely used by developers to build real-time streaming data pipelines and applications. In this tutorial, you will learn how to install Kafka on the latest version of POP! OS.
Open a terminal and download Kafka from the official website using the following command:
wget https://mirror.cc.columbia.edu/pub/software/apache/kafka/2.8.1/kafka_2.13-2.8.1.tgz
Once the download is complete, navigate to the directory where Kafka tarball is downloaded using the following command:
cd Downloads
Then extract the tarball using the following command:
tar xzf kafka_2.13-2.8.1.tgz
Zookeeper is a centralized service used by Kafka to maintain configuration information, naming, and synchronization. You need to start Zookeeper before starting Kafka. To start Zookeeper, navigate to the Kafka directory and use the following command:
cd kafka_2.13-2.8.1
bin/zookeeper-server-start.sh config/zookeeper.properties
To start Kafka, open a new terminal and navigate to the Kafka directory and use the following command:
cd kafka_2.13-2.8.1
bin/kafka-server-start.sh config/server.properties
Congratulations! You have successfully installed Kafka on POP! OS latest. You can now start using Kafka and building real-time streaming applications.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!