Get Started Free
course: Kafka Connect 101

Troubleshooting Confluent Managed Connectors

3 min
Danica Fine

Danica Fine

Senior Developer Advocate (Presenter)

Troubleshooting Managed Connectors

troubleshooting-managed-connectors

There are several tools that you can use to troubleshoot managed connectors. Depending upon the type of problem, one of these tools may work better than others. Let’s now walk through a scenario taking a look at how each of these tools can be used to troubleshoot the problem.

Troubleshoot the Dead Letter Queue

troubleshoot-dlq

One problem that you may experience is a sink connector is unable to process the messages from the Kafka topic it is configured to consume from. It could be that it is just a subset of these messages that it is unable to process or it could be all messages from the topic as shown in this example. Depending upon how the connector is configured, To troubleshoot this, you can click the dead letter queue tile in the connector overview window. This will navigate the UI to the associated Kafka topic where the dead letter queue messages are being written.

Dead Letter Queue Message Header

dlq-message-header

In the dead letter queue topic view, select the messages tab, drill into one of the messages and select the header tab. Then scroll down in the header information to identify the possible cause for the message ending up in the dead letter queue. In this example, we see that the connector wasn’t configured to auto-create the destination table if it didn’t already exist. To correct this, you would simply updated the connector configuration setting auto create table to true. You could do so using either the Confluent Cloud UI, the Connect API, or the Confluent CLI.

Troubleshoot a Failed Connector

troubleshoot-failed-connector

Let’s continue with the use case from the previous slide. The connector has been configured to auto-create the destination table in the MySql database and the Confluent Cloud UI now indicates the connector failed. You can investigate this using several tools. Let’s now look at each of these.

Confluent CLI

troubleshoot-managed-connector-with-confluent-cli

The Confluent CLI is one of the tools that can be used to investigate connector failures. The describe command provides similar detail as the Confluent Cloud UI.

Confluent Connect API

troubleshoot-managed-connector-with-connect-api

There are several tools that you can use to troubleshoot managed connectors. Depending upon the type of problem, one of these tools may work better than others. Let’s now walk through a scenario taking a look at how each of these tools can be used to troubleshoot the problem.

Confluent Cloud Connect Log Events

managed-connector-log-events

Confluent Cloud Connect log events are available on the connector events tab. They may provide additional detail regarding connector problems. In this example, the log event adds to the previous trace information about ensuring your input events are a flat struct of primitive fields.

Consuming Connect Log Events

consuming-managed-connector-log-events

Connect log events can also be accessed using the Confluent CLI consume command. Detailed information regarding how to accomplish this can be found by clicking the triple bar icon in the upper right corner of the Confluent Cloud UI and choosing the Connect log events menu.

Use the promo code 101CONNECT to get $25 of free Confluent Cloud usage

Be the first to get updates and new content

We will only share developer content and updates, including notifications when new content is added. We will never send you sales emails. 🙂 By subscribing, you understand we will process your personal information in accordance with our Privacy Statement.