Flink-postgres-cdc实时同步报错:无法访问文件 "decoderbufs": 没有那个文件或目录

  • 问题描述

Caused by: org.postgresql.util.PSQLException: 错误: 无法访问文件 "decoderbufs": 没有那个文件或目录

  • 解决办法

postgres-cdc的属性缺少如下配置:

'slot.name' = 'myslot',
'decoding.plugin.name'='pgoutput',
'scan.incremental.snapshot.enabled' = 'true'

例如:

CREATE TABLE cdc_pg_source (
n_nationkey int,
n_name string,
n_regionkey int,
n_comment string,
PRIMARY KEY (n_nationkey) NOT ENFORCED
)
WITH (
'connector' = 'postgres-cdc',
'hostname' = '192.168.80.131',
'port' = '5432',
'username' = 'postgres',
'password' = 'postgres',
'database-name' = 'bdc01',
'schema-name' = 'public',
'table-name' = 'nation',
'slot.name' = 'myslot',
'decoding.plugin.name'='pgoutput',
'scan.incremental.snapshot.enabled' = 'true'
);

 

posted @ 2024-01-03 10:43  业余砖家  阅读(126)  评论(0编辑  收藏  举报