JDBC Driver

Kafka Connect for HPE Ezmeral Data Fabric Streams provides a JDBC driver jar along with the connector configuration.

IMPORTANT
NOTE
Using Hive-JDBC driver with Connect-JDBC requires different jars in the share/java/kafka-connect-jdbc/ directory depending on whether Connect HDFS is installed on the same node:
  • If only Connect-JDBC is installed, you must keep the hive-jdbc-<version>-standalone jar.

  • If both Connect-JDBC and Connect-HDFS are installed on the same node, you must keep hive-jdbc (not standalone) and curator-client jars.

The JDBC driver (kafka-connect-jdbc) is set up by specifying the CLASSPATH variable. See Installing HPE Ezmeral Data Fabric Streams Tools.

The packaged connector is installed in the share/java/kafka-connect-jdbc directory, relative to the installation directory.

Alternatively, to add a new driver to the CLASSPATH,
  1. Put the classpath of the connectors in the kafka-connect-jdbc directory:
    /opt/mapr/kafka-connect-jdbc/kafka-connect-jdbc-<connector version>/share/java/kafka-connect-jdbc/
  2. Create a symlink into the share/java/kafka-connect-jdbc/ directory.