mayc0202 commented on issue #78:
URL:
https://github.com/apache/doris-kafka-connector/issues/78#issuecomment-3043363657
> Can you provide a sample message for Kafka?
Doris官方群里有人告诉我,现版本的doris连接器已经支持解析debezium格式,不需要额外配置transform。于是我将连接器版本升到25.0.0,重启了kafka、connector服务,还是不行。我尝试修改配置,添加隐藏列字段,但是没有效果,报文如下:{
"connector.class": "org.apache.doris.kafka.connector.DorisSinkConnector",
"transforms.unwrap.delete.handling.mode": "rewrite",
"tasks.max": "1",
"transforms": "unwrap,RenameField2",
"doris.urls": "192.168.1.161",
"sink.properties.partial_columns": "true",
"sink.properties.strip_outer_array": "false",
"debezium.schema.evolution": "basic",
"doris.query.port": "9030",
"connect.timeoutms": "5000",
"consumer.override.fetch.max.wait.ms": "1000",
"doris.database": "test_db",
"doris.password": "123456",
"transforms.unwrap.drop.tombstones": "false",
"consumer.override.max.poll.records": "10000",
"converter.mode": "debezium_ingestion",
"transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
"sink.properties.columns":
"id,name,email,phone,gender,password,age,create_time,update_time,__DORIS_DELETE_SIGN__",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"buffer.size.bytes": "5000000",
"doris.topic2table.map": "SERVER275_.xqh-ddtt.app_user2:app_user",
"doris.http.port": "8030",
"doris.user": "test_user",
"database.time_zone": "Asia/Shanghai",
"bufferflush.intervalms": "30000",
"topics": "SERVER275_.xqh-ddtt.app_user2",
"transforms.RenameField2.renames":
"id:id,name:name,email:email,phone:phone,gender:gender,password:password,age:age,create_time:create_time,update_time:update_time,__DORIS_DELETE_SIGN__:__DORIS_DELETE_SIGN__",
"batch.size": "1000",
"buffer.flush.time": "10",
"consumer.override.fetch.min.bytes": "52428800",
"enable.delete": "true",
"key.converter.schemas.enable": "true",
"sink.properties.primary_key": "id",
"consumer.override.compression.type": "snappy",
"buffer.count.records": "10000",
"value.converter.schemas.enable": "true",
"consumer.override.max.partition.fetch.bytes": "104857600",
"transforms.RenameField2.type":
"org.apache.kafka.connect.transforms.ReplaceField$Value"
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]