Тёмный

ksqlDB HOWTO: Reserialising data in Apache Kafka 

Robin Moffatt
Подписаться 4,2 тыс.
Просмотров 2 тыс.
50% 1

Using ksqlDB you can reserialise data in Apache Kafka topics. For example, you can take a stream of CSV data and write it to a new topic in Avro. ksqlDB supports many serialisation formats including Avro, Protobuf, JSON Schema, JSON, and Delimited (CSV, TSV, etc).
ksqlDB uses SQL to describe the stream processing that you want to do. For example:
CREATE STREAM ORDERS_CSV WITH (VALUE_FORMAT='DELIMITED',
KAFKA_TOPIC='orders_csv') AS
SELECT * FROM ORDERS;
-----
💾 Run ksqlDB yourself: ksqldb.io?.devx_ch.rmoff_youtube_sLAztA-rt74&
☁️ Use ksqlDB as a managed service: www.confluent.io/confluent-cl...
👾 Demo code: github.com/confluentinc/demo-...
🤔 Questions? Join the Confluent Community at confluent.io/community/ask-th...
-----
⏱ Time codes
00:00:00 Introduction
00:00:35 Printing the contents of Avro messages using ksqlDB
00:01:35 Listing streams in ksqlDB
00:02:13 Creating a new stream in ksqlDB from existing Kafka data
00:02:56 Converting Avro data in Kafka to CSV in ksqlDB
00:04:10 List of streams showing the different serialisation formats
00:04:19 Examining the reserialised topic
00:04:41 Converting Avro messages in Apache Kafka to JSON format with ksqlDB
00:04:59 Examining JSON topic data
00:05:15 Why you should think twice before using CSV in your output topics
00:05:49 The benefits of reserialising CSV data in Kafka to Avro (adding a schema to the data)
00:06:24 How to apply a schema to CSV data in Kafka and serialising it to Avro
00:06:48 Printing CSV messages from Kafka
00:07:25 Declaring a schema on CSV data in a Kafka topic in ksqlDB
00:09:37 Viewing a stream's schema
00:10:16 Why does my ksqlDB SELECT query not return data
00:10:47 Inspecting the ksqlDB server log
00:12:54 Changing the schema definition of a ksqlDB stream
00:13:42 A little rant about CSV
00:14:52 Converting CSV messages to Avro - recap

Наука

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

 

3 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@pradeepjahagirdar8608
@pradeepjahagirdar8608 Год назад
Thank you Robin. Appreciate the reply. Will check the community site as well.
@karthikb.s.k.4486
@karthikb.s.k.4486 8 месяцев назад
Thank you for tutorials Robin . If the schema changes frequently based on business requirements then each time we have to drop the stream and create it . Please let me know
@janga8717
@janga8717 3 года назад
One important Question: Where can I find that awesome T-shirt?
@rmoff
@rmoff 3 года назад
Limited edition I'm afraid! :)
@pradeepjahagirdar8608
@pradeepjahagirdar8608 Год назад
Hi Robin, I have a Kafka topic which is ingested by a IBM Mq connector and has a fixed width data . I would like to create a stream by filtering and serialize the data using JSON format . After applying the filter condition the structure should use a COBOL copy book and then serialize the data using JSON format and ingest into the Kafka Topic. If you can give me some guidance on how to create the stream that will help. Once the stream is created it will keep running and ingesting the data into the topic ?. or we have to build a micro service to run this stream ? Thanks in advance . Pradeep
@rmoff
@rmoff Год назад
Hi Pradeep, have a look at www.confluent.io/hub/jcustenborder/kafka-connect-transform-cobol. If you've got any more questions please head over to www.confluent.io/en-gb/community/ask-the-community/
@pradeepjahagirdar8608
@pradeepjahagirdar8608 Год назад
hi Robin, I have joined the forum and posted a question on it. I don't see any documentation on the connector. Please let me know how can i get additional info on setting up the config properties of this connector and also if you have some utility as to how to convert a COBOL copy book to POJO (java object) which can be used inside the KSTREAM . Thanks in advance. @@rmoff
Далее
ksqlDB HOWTO: Integration with other systems
5:16
Просмотров 1,5 тыс.
ksqlDB HOWTO: Stateful Aggregates
13:56
Просмотров 2,8 тыс.
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
UNO!
00:18
Просмотров 2 млн
ksqlDB HOWTO: Schema Manipulation
10:56
Просмотров 1,6 тыс.
ksqlDB HOWTO: Handling Time
9:08
Просмотров 2,4 тыс.
Why The Windows Phone Failed
24:08
Просмотров 122 тыс.
ksqlDB HOWTO: Split and Merge Kafka Topics
10:18
Просмотров 3,5 тыс.
What is Apache Kafka®?
11:42
Просмотров 346 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 346 тыс.