Apache Spark Kafka Installation

  • date 27th February, 2019 |
  • by Prwatech |
  • 0 Comments

 

Apache Spark Kafka Installation

 

Apache Spark Kafka Installation, In this tutorial one can easily know the information about Apache Spark Kafka Installation and Spark Kafka setup on Ubuntu 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 install Kafka on Ubuntu. We will learn various steps for the Kafka installation on Ubuntu to set up the Apache Spark. We will start with platform requirements for Apache Kafka setup on Ubuntu,  Kafka installation prerequisites, various software required for installing Kafka on Ubuntu. Do you want to set up the Kafka on Ubuntu, So follow the below mentioned Apache spark 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.

Kafka installation prerequisites

Ubuntu 12.0 (or above)

Kafka tar file

 Step 1: Download Kafka from this link

 

https://www.apache.org/dyn/closer.cgi path=/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz

 

Step 2: Untar using this command

 

tar -xzf kafka_2.11-0.11.0.0.tgz

 

Step 3: do cd command:

 

cd kafka_2.11-0.11.0.

 

 

Step 4: Open a terminal and run

 

bin/zookeeper-server-start.sh config/zookeeper.properties

 

 

Step 5: Open another terminal and run

 

bin/kafka-server-start.sh config/server.properties

 

 

Step 6: Open another terminal and run

 

bin/kafka-topics.sh –create –zookeeper localhost:2181 –replication- factor 1 –partitions 1 –topic test

 

 

 bin/kafka-topics.sh –list –zookeeper localhost:2181 test

 

 

bin/kafka-console-producer.sh –broker-list localhost:9092 –topic test

 

 

Hello World

Hello India

Step 7: Open another terminal and run

 

bin/kafka-console-consumer.sh –bootstrap-server localhost:9092 –topic test –from-beginning

Whatever is typed in producer prompt, will be shown here

Hello World

Hello India

 

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 Spark Kafka installation upgrades. Our expert trainers will help you towards mastering real-world skills in relation to these Spark technologies.

 

 

 

Quick Support

image image