我正在尝试使用下面的连接器将主题发送到我的postgres db之前使其扁平化。我正在使用融合的4.1.1 kafka connect docker映像,唯一的更改是我将一个自定义连接器jar复制到/ usr / share / java并在其他权限下运行。
版本(kafka连接)“ 1.1.1-cp1”
提交“ 0a5db4d59ee15a47”
{
"name": "problematic_postgres_sink",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"key.converter.schema.registry.url": "http://kafkaschemaregistry.service.consul:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://kafkaschemaregistry.service.consul:8081",
"connection.url": "jdbc:postgresql://123.123.123.123:5432/mypostgresdb",
"connection.user": "abc",
"connection.password": "xyz",
"insert.mode": "upsert",
"auto.create": true,
"auto.evolve": true,
"topics": "mytopic",
"pk.mode": "kafka",
"transforms": "Flatten",
"transforms.Flatten.type": "org.apache.kafka.connect.transforms.Flatten$Value",
"transforms.Flatten.delimiter": "_"
}
}
我得到一个400错误代码:
连接器配置无效,并且包含以下内容1 错误:值类别无效 org.apache.kafka.connect.transforms.Flatten进行配置 transforms.Flatten.type:从以下位置获取配置定义时出错 转换:null