Тёмный

Confluent Rest Proxy for Kafka In Depth Intuition 

Knowledge Amplifier
Подписаться 27 тыс.
Просмотров 4,8 тыс.
50% 1

The Confluent REST Proxy provides a RESTful interface to an Apache Kafka® cluster, making it easy to produce and consume messages, view the state of the cluster, and perform administrative actions without using the native Kafka protocol or clients.
This video explains about Confluent Rest Proxy with in-depth intuition.
Prerequisite:
----------------------------
Setting up a single node Kafka Cluster on EC2
• Setting up a single n...
Documentation Reference:
------------------------------------------------
docs.confluent.io/platform/cu...
Steps followed in the video:
---------------------------------------------------------
Kafka Server Launch:
-------------------------------------------
wget dlcdn.apache.org/kafka/3.2.3/...
tar -xvf kafka_2.12-3.2.3.tgz
To install Java --
----------------------------------------
java -version
sudo yum install java-1.8.0-openjdk
java -version
cd kafka_2.12-3.2.3
Start Zoo-keeper:
-------------------------------
bin/zookeeper-server-start.sh config/zookeeper.properties
Start Kafka-server:
----------------------------------------
Duplicate the session & enter in a new console --
export KAFKA_HEAP_OPTS="-Xmx256M -Xms128M"
cd kafka_2.12-3.2.3
bin/kafka-server-start.sh config/server.properties
It is pointing to private server , change server.properties so that it can run in public IP
To do this , you can follow any of the 2 approaches shared belwo --
1)Do a vi config/server.properties in insert mode -- change ADVERTISED_LISTENERS to public ip of the EC2 instance
2)You can modify the file using Winscp also
Confluent Kafka Installation:
-----------------------------------------------------
wget packages.confluent.io/archive/...
sudo yum install java-1.8.0-openjdk
unzip confluent-5.1.2-2.11.zip
export CONFLUENT_HOME=/home/ec2-user/confluent-5.1.2
export PATH=$PATH:$CONFLUENT_HOME/bin
vi confluent-5.1.2/etc/kafka-rest/kafka-rest.properties
bootstrap.servers={}:9092
advertised.listeners={}:8082
confluent-5.1.2/bin/kafka-rest-start confluent-5.1.2/etc/kafka-rest/kafka-rest.properties
Create Topic:
---------------------------------
cd kafka_2.12-3.2.3
bin/kafka-topics.sh --create --topic demo_testing2 --bootstrap-server {}:9092 --replication-factor 1 --partitions 1
Find out list of topics:
-------------------------------------------
{}:8082/topics
Create one more topic :
-----------------------------------------
bin/kafka-topics.sh --create --topic demotesting3 --bootstrap-server {}:9092 --replication-factor 1 --partitions 1
Pass data:
------------------------------
Start the consumer
bin/kafka-console-consumer.sh --topic demo_testing2 --bootstrap-server {}:9092
{}:8082/topics/{}
Content-Type: application/vnd.kafka.json.v2+json
{"records":[{"value":{"name": "testUser"}}]}
{
"records": [
{
"key": "1",
"value": {
"id": "1",
"customer_code": "1",
"telephone": "888582158",
"email": "supplier1@test.com",
"language": "EN"
}
}
]
}
{
"records": [
{
"key": "3",
"value": {
"id": "3",
"customer_code": "3",
"telephone": "888582154",
"email": "supplier3@test.com",
"language": "EN"
}
},
{
"key": "2",
"value": {
"id": "2",
"customer_code": "2",
"telephone": "788682158",
"email": "supplier2@test.com",
"language": "EN"
}
}
]
}
Check this playlist for more Data Engineering related videos:
• Demystifying Data Engi...
Apache Kafka form scratch
• Apache Kafka for Pytho...
Snowflake Complete Course from scratch with End-to-End Project with in-depth explanation--
doc.clickup.com/37466271/d/h/...
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY RU-vid CHANNEL

Наука

Опубликовано:

 

6 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@surajthakkar
@surajthakkar Год назад
very good video, thanks!
@KnowledgeAmplifier1
@KnowledgeAmplifier1 Год назад
You are welcome suraj thakkar! Happy Learning
@orhngazi
@orhngazi 11 месяцев назад
Hello, thank you for this video. I want a pub/sub for a nextjs web site but I cant find how can I do it. You showed how to data send to kafka but I don't know how to consume it realtime. Like websocket pub/sub but I must it with kafka. How can I write a "consumer" with kafka rest or kafka anything?
@bun4uk
@bun4uk 9 месяцев назад
Is it agood solution to use Confluent Rest Proxy for tracking events for ClickStream analytics directly from backend servers?
@susantakumar6219
@susantakumar6219 Месяц назад
how to consume a topic using rest proxy
@sandippan11
@sandippan11 Месяц назад
How to pass API key and secret to kafka rest api
Далее
Introduction to Schema Registry in Kafka | Part 1
30:42
Apache Kafka Architecture
11:19
Просмотров 17 тыс.
From Zero to Hero with Kafka Connect
33:49
Просмотров 27 тыс.
What is Confluent | Jay Kreps (CEO, Confluent)
6:18
Просмотров 77 тыс.
Игровой Комп с Авито за 4500р
1:00