Testing Kafka Setup

We will create a topic called “topic1” to test that everything is functioning properly, after starting both ZooKeeper and Kafka

 

 

You can see that Kafka has successfully created the topic “topic1“. 

There is one more command to check if the zookeeper and Kafka are started successfully. Make sure that the zookeeper is running on port 2181.

echo dump | nc localhost 2181

 

 

How to install Kafka with Zookeeper on Ubuntu?

Apache Kafka is an open-source distributed event streaming platform used to handle real-time data feeds. It is designed to handle a high volume, high throughput, and low latency data streams, and can be used to process, store, and analyze data in real-time. Kafka can be used to build real-time streaming data pipelines and applications and is often used in combination with Apache Storm, Apache Hadoop, and Apache Spark.

Similar Reads

Install Kafka with Zookeeper on Ubuntu

Follow the below steps to install Kafka with Zookeeper on Ubuntu....

Testing Kafka Setup

We will create a topic called “topic1” to test that everything is functioning properly, after starting both ZooKeeper and Kafka...

Conclusion :

In conclusion, installing Apache Kafka with Zookeeper on Ubuntu involves several steps: first, installing Java JDK version 11, then downloading and extracting the binary version of Apache Kafka from the official website, starting Zookeeper, and Kafka, and finally, setting up the environment variables for easy access to the Kafka binaries by adding the path to the $PATH. It is important to ensure that Java is installed on your system before proceeding with the installation. Additionally, Zookeeper is included with Apache Kafka and must be started before starting Kafka. By following these steps, you will be able to successfully install and run Apache Kafka and Zookeeper on Ubuntu....