Hi Team, we are using CrateDB 5.10.2
and using kafka connect to sink data to CrateDB, the firstly created the connect could running normally and create automatically nineteen tables in CrateDB. After adding more topics to kafka connect, the connect no more sink data to CrateDB, the consume lag is increasing, while there are no any errors in connect.log and crate.log.
I appreciate the help, thanks.
connect configuration
{
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"table.name.format": "${topic}",
"transforms.dropPrefix.replacement": "$2.$3",
"transforms.flatten.type": "org.apache.kafka.connect.transforms.Flatten$Value",
"transforms": "dropPrefix,flatten,Cast",
"transforms.dropPrefix.regex": "([^.]+).([^.]+).([^.]+)",
"topics.regex": "pgdb_biz.so.([^.]+),pgdb_biz.qto.([^.]+),pgdb_biz.dock.([^.]+)",
"transforms.dropPrefix.type": "org.apache.kafka.connect.transforms.RegexRouter",
"transforms.flatten.delimiter": "_",
"value.converter.schema.registry.url": "http://<schema-registry-host-1>:18081,http://<schema-registry-host-2>:18081,http://<schema-registry-host-3>:18081",
"delete.enabled": "false",
"auto.evolve": "true",
"name": "sink-pgdb_biz_to_cratedb-connector",
"auto.create": "true",
"transforms.Cast.spec": "before_req_date:string,before_plan_delivery_date:string,after_req_date:string,after_plan_delivery_date:string,before_order_date:string,after_order_date:string",
"connection.url": "jdbc:postgresql://<database-host>:<port>/<database-name>?user=<username>&password=<password>",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"transforms.Cast.type": "org.apache.kafka.connect.transforms.Cast$Value",
"insert.mode": "insert",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://<schema-registry-host-1>:18081,http://<schema-registry-host-2>:18081,http://<schema-registry-host-3>:18081"
}
below tables are created when connect firstly created
cr> \dt
+----------------------------------+
| name |
+----------------------------------+
| dock.so_header |
| dock.so_line |
| qto.qo_header |
| qto.qo_line |
| so.so_comm_audit_req_ext |
| so.so_header |
| so.so_header_ext |
| so.so_header_invoice_ext |
| so.so_line |
| so.so_line_mark_detail |
| so.so_line_patent_ext |
| so.so_line_priority_prepare_data |
| so.so_line_relation_detail |
| so.so_line_sub_item |
| so.so_line_trace_ext |
| so.so_rel_contact_detail |
| so.state_machine_def |
| so.state_machine_task |
| so.state_machine_task_log |
+----------------------------------+
SELECT 19 rows in set (0.004 sec)
cr>
consume lag