postgresql - Postgres sink 连接器在 DLQ 中放置消息
问题描述
我正在尝试探索 kafka 上的 postgres 源和接收器连接器。在 Postgres 中创建了 2 个具有相同字段(名称 varchar、created_at 时间戳)的表。
当 table1 上发生插入事件时,源连接器会生成有关该主题的消息。接收器连接器配置为使用来自主题的数据并将记录创建到 table2 中。
接收器连接器上没有发生事件消耗,并且消息将进入 DLQ 队列。
Connector Class: PostgresSink
Topics: development-source_test
Max Tasks: 1
input.data.format: JSON_SR
connection.host: ****.ap-south-1.rds.amazonaws.com
connection.port: 5432
connection.user: devteam
db.name: dev-db
ssl.mode: prefer
insert.mode: INSERT
table.name.format: sink_test
db.timezone: UTC
auto.create: false
auto.evolve: false
tasks.max: 1
解决方案
推荐阅读
- node.js - 如何在节点中的函数调用中等待回调?
- ios - 在 UIScrollView 上绘制上边框
- python - Python Pandas - 采样:限制随机选择的项目数量
- python - Cron 作业不会并行执行
- arm - 控制 GPIO 管脚:所有管脚一个类别还是每个管脚一个类别?
- typescript - 如何阻止 TypeScript 编译器报告符号链接模块中的编译错误
- javascript - 区别!!vs 直接检查价值
- google-apps-script - 需要 Google Docs 的脚本来发送自动电子邮件
- javascript - Django如何将查询集转换为json?
- javascript - Firefox 扩展:chrome.system 未定义