Lab Manual - ETL-KAFKA-TALEND
Lab Manual - ETL-KAFKA-TALEND
Objective: This lab manual aims to provide hands-on experience with Apache Kafka and its
integration into the ETL pipeline using tools such as Talend. Each experiment is designed to
deepen understanding of Kafka's core concepts, configurations, and capabilities, as well as to
explore its use in real-time data processing.
Output:
Install Java Output: java version "11.0.12" 2021-07-20\nOpenJDK Runtime Environment... This confirms
Java is successfully installed.
Download Kafka No specific output is shown as this is just downloading and extracting files.
Start ZooKeeper Output: [2024-xx-xx xx:xx:xx,xxx] INFO binding to port 0.0.0.0/0.0.0.0:2181 This
indicates ZooKeeper has started successfully and is listening on port 2181.
Start Kafka Server Output: [2024-xx-xx xx:xx:xx,xxx] INFO [KafkaServer id=0] started This shows the Kafka
broker has started successfully.
Create a Topic Output: Created topic quickstart-events This confirms the test topic was created
successfully
Experiment 2: Setting up a Single-Node, Single-Broker Kafka Cluster
Source code:
"timestamp": 1703737341000 } },
{ "offset": 2, "content": {
"producerId": "notification-service",
},
"timestamp": 1703737342000 } }
Source Code:
// Create a topic
consttopicName = 'test-topic';
broker.createTopic(topicName);
consumer1.subscribe(topicName);
consumer2.subscribe(topicName);
console.log(broker.listTopics());
console.log(topic.getMessages());
Output
Source code
// Create a topic
consttopicName = 'test-topic';
broker.createTopic(topicName);
consumer1.subscribe(topicName);
consumer2.subscribe(topicName);
console.log(broker.listTopics());
console.log(topic.getMessages());
Output:
Download Kafka (No specific output - just downloads and extracts files)
Topic: quickstart-events
Partition: 0
Offset: 0