IKH

Starting Kafka Servers

Let’s begin with the demonstration of Kafka producers and consumers. In the next video, Vishwa will show you the steps that you need to take to start the EC22 instance.

In the previous video, you learnt how to start the EC2 instance that you created separately for this module. Once the instance is started, you need to login to this instance. If you are using the Windows operating system, you need to use Putty to login to the instance. If you are a Mac user, you can SSH using the command line. If you are Windows user, follow the steps in the document attached below to login to this instance.

If you are Linux/Mac user, follow the steps in the document attached below to login to this instance.

In the next video, let’s take a look at different files that are present inside the Kafka folder.

In the previous video, you learnt about different files that are present inside the Kafka folder.

To get into the Kafka, you need to follow these steps.

Example

Python
cd downloads/

Output

Once you are inside the downloads directory, you need to go inside the Kafka folder that is present in the downloads directory. The command for the same is as follows.

Example

Python
cd kafka_2.12-2.3.0/

Output

Once you are inside this directory, you can look at the different directories and files inside these directories using the ‘Is’ command as demonstrated by Vishwa in the video.

Now that you took a look at the files inside the Kafka directory, let’s start the Zookeeper and the Kafka server. In the next video, you will learn how to start these servers.

In the previous video, you learnt how to start the Zookeeper and the Kafka server. First, you need to start the Zookeeper server, and once this server has started, you need to start the Kafka server. By default, the Zookeeper server starts on port number 2181, and the Kafka server starts on port number 9092.

Note:

To run the commands to start these servers, make sure that you run these commands from the Kafka directory that are present inside the downloads directory.

Now in next segment, you will learn how to create a Kafka topic.

Report an error