Google News
logo
Kafka - Interview Questions
What is the process for starting a Kafka server?
Since Kafka uses ZooKeeper, it is essential to initialize the ZooKeeper server, and then fire up the Kafka server.

* First, download the most recent version of Kafka and extract it.
* Ensure that the local environment has Java 8+ installed to run Kafka.

Use the following commands to start the Kafka server and ensure that all services are started in the correct order:
 
* Start the ZooKeeper service by doing the following:
$bin/zookeeper-server-start.sh config/zookeeper.properties​
* To start the Kafka broker service, open a new terminal and type the following command :
$ bin/kafka-server-start.sh config/server.properties  
Advertisement