kafka connect - jdbc sink sql exception

后端 未结 2 1441
半阙折子戏
半阙折子戏 2021-01-21 08:27

I am using the confluent community edition for a simple setup consisting a rest client calling the Kafka rest proxy and then pushing that data into an oracle database using the

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 08:37

    Kafka Connect framework for Sink Connectors can only skip problematic records when exception is thrown during: - Convertion key or values (Converter:toConnectData(...)) - Transformation (Transformation::apply)

    For that you can use errors.tolerance property:

    "errors.tolerance": "all"
    

    There are some additional properties, for printing details regarding errors: errors.log.enable, errors.log.include.messages. Original answer: Apache Kafka JDBC Connector - SerializationException: Unknown magic byte

    If an exception is thrown during delivering messages Sink Task is killed. If you need to handle communication error (or others) with an external system, you have to add support to your connector

    Jdbc Connector, when SQLException is thrown makes retries but doesn't skip any records

    Number of retries and interval between them is managed by the following properties

    • max.retries default value 10
    • retry.backoff.ms default 3000

提交回复
热议问题