Apache Kafka Installation

  • date 15th March, 2019 |
  • by Prwatech |
  • 0 Comments

Apache Kafka Installation Tutorial

Apache Kafka Installation tutorial, In this tutorial one, can easily know the information about Step by Step of Installing Apache Kafka and How to Set Up Kafka which are available and are used by most of the Spark developers. Are you dreaming to become to certified Pro Spark Developer, then stop just dreaming, get your Apache Spark certification course from India’s Leading Apache Spark Scala Training institute.

In this tutorial, we will learn how to download Kafka. We will learn Step by Step of Installing Apache Kafka to set up the Apache Spark. We will start with platform requirements for Apache Kafka installation guide,  Kafka installation prerequisites. Do you want to set up the Kafka, So follow the below mentioned Apache Kafka installation guide from Prwatech and take Apache Spark Scala training like a pro from today itself under 15+ Years of Hands-on Experienced Professionals.

Apache Kafka Installation Steps

Step 1: Download Kafka

Download the kafka_2.11-2.0.0 release and un-tar it.

https://archive.apache.org/dist/kafka/2.0.0/kafka_2.11-2.0.0.tgz

Apache Kafka Installation Steps

And get into Kafka directory

Apache Kafka Installation Steps commands

Step 2: Start the server

Start a ZooKeeper server. and Kafka server

Apache Kafka Installation Steps 1

Apache Kafka Installation Steps follow

Step 3: Create the topics for the example programs

We need two topics for the example program

Apache Kafka Installation Steps

Apache Kafka Installation Steps

Apache Kafka Installation Steps

Apache Kafka Installation Steps

These can be listed

Apache Kafka Installation Steps

Step 4: Now visit a below-given site and download the package (maven package)

https://github.com/mapr-demos/kafka-sample-programs

Apache Kafka Installation Steps

And save it on your desktop

Apache Kafka Installation Steps

Step 5: Compile and package up the example programs

Go back to the directory where you have the example programs and compile and build the example programs.

Apache Kafka Installation Steps

Apache Kafka Installation Steps

Note: You need to Install Maven first on your ubuntu system to read the package

Command:   Sudo apt install maven

Step 6: Run the example producer

Apache Kafka Installation Steps

Apache Kafka Installation Steps

Step 7: Start the example consumer

Apache Kafka Installation Steps Start the example consumer

After running the consumer once, however, if we run the producer again and then run the consumer again, we will see the consumer pick up and start processing messages shortly after it starts.

Apache Kafka Installation Steps

Become a certified expert in Apache Spark by getting enrolled from Prwatech E-learning India’s leading advanced Apache Spark training institute in Bangalore. Register now for more updates on Apache Kafka installation upgrades. Our expert trainers will help you towards mastering real-world skills in relation to these Spark technologies.

0
0

Quick Support

image image