In this tutorial, we will guide you through the steps to install Kafka on Clear Linux Latest.
Before proceeding with the installation, you will need the following:
Kafka requires Java to be installed on the system. The Clear Linux Latest comes with OpenJDK pre-installed but we recommend installing Oracle JDK for better performance.
To install Oracle JDK 11, follow the below commands.
sudo swupd bundle-add java-runtime
sudo swupd bundle-add java-basic
Check the Java version by running the java -version
command. If installed correctly, you should see the following output:
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
kafka_2.13-2.6.2.tgz
).wget https://mirror.csclub.uwaterloo.ca/apache/kafka/2.6.2/kafka_2.13-2.6.2.tgz
tar -xzf kafka_2.13-2.6.2.tgz
mv kafka_2.13-2.6.2 /opt/kafka
cd /opt/kafka
./bin/zookeeper-server-start.sh config/zookeeper.properties &
./bin/kafka-server-start.sh config/server.properties &
./bin/kafka-topics.sh --create --topic my-topic --bootstrap-server localhost:9092
./bin/kafka-topics.sh --list --bootstrap-server localhost:9092
That’s it! You have successfully installed Apache Kafka on Clear Linux Latest. You can now use Kafka on your machine to build robust and scalable 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!