Jar

> Data Integration Tool (ETL/ELT) > Kafka (Event Hub)

1 - ClassPath

You’ll need to make sure the JDBC driver is available on the Kafka Connect process’s CLASSPATH.

Get the classpath of a component. For instance, connect

# component may be connect, kafka, ...
COMPONENT_NAME=${COMPONENT:6}
cat /proc/$(pgrep -f $COMPONENT_NAME)/environ | tr \\0 \\n | grep -i CLASSPATH
CLASSPATH=/etc/kafka-connect/jars/*:/usr/share/java/kafka/*:/usr/share/java/confluent-common/*:/usr/share/java/kafka-serde-tools/*:/usr/share/java/monitoring-interceptors/*:/usr/bin/../share/java/kafka/*:/usr/bin/../share/java/confluent-support-metrics/*:/usr/share/java/confluent-support-metrics/*
CUB_CLASSPATH=/etc/confluent/docker/docker-utils.jar

Known location of the jar file for the jdbc connect plugin

  • Windows: confluent_home\share\java\kafka-connect-jdbc
  • Linux: /usr/share/java/kafka-connect-jdbc/

2 - Repository

Confluent Maven repository

<repositories>
 
  <repository>
    <id>confluent</id>
    <url>http://packages.confluent.io/maven/</url>
  </repository>
 
  <!-- further repository entries here -->
 
</repositories>

With a direct URL, to get the Jdbc connector version 3.3.0:

Advertising

3 - Documentation / Reference