Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

🎄Twelve Days of SMT 🎄 - Day 8: TimestampConverter

Автор: Robin Moffatt

Загружено: 2020-12-17

Просмотров: 1986

Описание:

The TimestampConverter Single Message Transform lets you work with timestamp fields in Kafka messages. You can convert a string into a native Timestamp type (or Date or Time), as well as Unix epoch - and the same in reverse too.

This is really useful to make sure that data ingested into Kafka is correctly stored as a Timestamp (if it is one), and also enables you to write a Timestamp out to a sink connector in a string format that you choose.

The TimestampConverter takes three arguments; the name of the field holding the timestamp, the data type to which you want to convert it, and the format of the timestamp to parse (if reading a string and target.type is unix/timestamp/date/time) or write (if you’re writing a string and target.type is string). The timestamp format is based on SimpleDateFormat.

"transforms" : "convertTS",
"transforms.convertTS.type" : "org.apache.kafka.connect.transforms.TimestampConverter$Value",
"transforms.convertTS.field" : "txn_date",
"transforms.convertTS.format" : "EEE MMM dd HH:mm:ss zzz yyyy",
"transforms.convertTS.target.type": "Timestamp"

---

⏱️Time codes:

00:00:00 Brief introduction
00:01:16 Kafkacat - the swiss-army knife of Kafka commandline tools
00:02:45 Inspecting the schema for a topic in the Schema Registry
00:04:56 Setting up the basic sink connector (no transform)
00:05:38 Using the TimestampConverter to write a string to a timestamp in a database table
00:08:56 Write the date portion of a string timestamp to a Date type in target sink connector
00:10:54 Write the date portion of a string timestamp to a Date type in target sink connector
00:11:43 Converting a string timestamp into unix timestamp (epoch)
00:14:10 Using the TimestampConverter with a Source connector
00:17:00 A brief tangent about useful bash keyboard shortcuts
00:18:19 Converting at ingest vs egress
00:18:50 Recap

---

👾 Demo code and details: https://github.com/confluentinc/demo-...

🗒️ SMT reference: https://docs.confluent.io/platform/cu...

Learn more about Kafka Connect here:
🏃‍♂️ Quick:    • Kafka Connect in 60 seconds  
🚶 More detail: https://rmoff.dev/kafka-connect-zero-...

---

☁️ Confluent Cloud: https://confluent.cloud/signup?utm_so...

💾Download Confluent Platform: https://www.confluent.io/download/?ut...

📺 Kafka Connect connector deep-dives:    • Kafka Connect  

✍️Kafka Connect documentation: https://docs.confluent.io/current/con...

🧩Confluent Hub: https://www.confluent.io/hub/?utm_sou...

🎄Twelve Days of SMT 🎄 - Day 8: TimestampConverter

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

🎄Twelve Days of SMT 🎄 - Day 9: Cast

🎄Twelve Days of SMT 🎄 - Day 9: Cast

Connectors, Configuration, Converters, and Transforms | Kafka Connect 101 (2023)

Connectors, Configuration, Converters, and Transforms | Kafka Connect 101 (2023)

🎄Twelve Days of SMT 🎄 - Day 10: ReplaceField

🎄Twelve Days of SMT 🎄 - Day 10: ReplaceField

Kafka Connect Tutorials | Kafka Connect 101 (2023)

Kafka Connect Tutorials | Kafka Connect 101 (2023)

🎄Twelve Days of SMT 🎄 - Day 11: Filter and Predicate

🎄Twelve Days of SMT 🎄 - Day 11: Filter and Predicate

От нуля до героя с Kafka Connect

От нуля до героя с Kafka Connect

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

🎄Twelve Days of SMT 🎄 - Day 12: Community transformations

🎄Twelve Days of SMT 🎄 - Day 12: Community transformations

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Windows to Linux Survival Guide (2027 Edition)

Windows to Linux Survival Guide (2027 Edition)

The Man Behind Google's AI Machine | Demis Hassabis Interview

The Man Behind Google's AI Machine | Demis Hassabis Interview

🎄 Twelve Days of SMT 🎄 - Day 1: InsertField (timestamp)

🎄 Twelve Days of SMT 🎄 - Day 1: InsertField (timestamp)

ksqlDB HOWTO: Reserialising data in Apache Kafka

ksqlDB HOWTO: Reserialising data in Apache Kafka

Schemas and the Schema Registry | Apache Kafka for .NET Developers

Schemas and the Schema Registry | Apache Kafka for .NET Developers

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

Bill Gates STUNNED as Windows 12 Faces MASSIVE Backlash Before Launch!

Microsoft begs for mercy

Microsoft begs for mercy

Real-time vehicle telemetry analysis with Kafka Streams

Real-time vehicle telemetry analysis with Kafka Streams

Kafka Connect JDBC sink deep-dive: Working with Primary Keys

Kafka Connect JDBC sink deep-dive: Working with Primary Keys

🎧🇩🇪 200 МИНУТ! Пойми НЕМЕЦКИЙ на слух. Немецкие ФРАЗЫ которые помогут заговорить. Разговорные фразы

🎧🇩🇪 200 МИНУТ! Пойми НЕМЕЦКИЙ на слух. Немецкие ФРАЗЫ которые помогут заговорить. Разговорные фразы

I Read Honey's Source Code

I Read Honey's Source Code

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com