What is a simple, effective way to debug custom Kafka connectors?

前端 未结 3 1633
不知归路
不知归路 2020-12-19 00:50

I\'m working a couple of Kafka connectors and I don\'t see any errors in their creation/deployment in the console output, however I am not getting the result that I\'m looki

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 01:13

    Connector module is executed by the kafka connector framework. For debugging, we can use the standalone mode. we can configure IDE to use the ConnectStandalone main function as entry point.

    1. create debug configure as the following. Need remember to tick "Include dependencies with "Provided" scope if it is maven project

    2. connector properties file need specify the connector class name "connector.class" for debugging

    3. worker properties file can copied from kafka folder /usr/local/etc/kafka/connect-standalone.properties

提交回复
热议问题