Kafka Connect with a JdbcConnectionSource connector fails to create task (connector is RUNNING but task is not)

前端 未结 1 1285
既然无缘
既然无缘 2021-01-19 05:45

It seems like rather often I create a Kafka Connect connector from the JdbcConnectionSource based on a query, and the connector is created successsfully with status \"RUNNIN

相关标签:
1条回答
  • 2021-01-19 06:19

    How can one get more information to troubleshoot when a connector fails to create a RUNNING task?

    I would increase the logging level on your Kafka Connect worker. Since you're using Apache Kafka 2.4 you can do this dynamically, which is rather useful. Issue this REST API call to your Kafka Connect worker:

    curl -X PUT http://localhost:8083/admin/loggers/io.confluent \
         -H "Content-Type:application/json" -d '{"level": "TRACE"}'
    

    This bumps up all messages for any Confluent connector to TRACE. It also returns a list of the individually loggers, from which you can cherry-pick different loggers and turn their specific loglevel up or down as required. For example:

    curl -X PUT http://localhost:8083/admin/loggers/io.confluent.connect.jdbc.dialect.DatabaseDialects \
         -H "Content-Type:application/json" -d '{"level": "INFO"}'
    

    Ref: https://rmoff.net/2020/01/16/changing-the-logging-level-for-kafka-connect-dynamically/

    0 讨论(0)
提交回复
热议问题