Apache Solr

The SOLR connector is a high speed mechanism for writing data to Apache Solr.

Tip

If you are seeing error messages such as Invalid version (expected 2, but 60) or the data in not in ‘javabin’ format compare the version of the Solr Server against the version of solrj the connector is compiled with. This error message is most likely due to a version mismatch between the server and solrj. To address this try replacing the solr-solrj-*.jar packaged with the connector with the version that matches the Solr server you are connecting to.

Installation

The preferred method of installation is to utilize the Confluent Hub Client.

Confluent Hub

The plugin is hosted on the Confluent Hub. Installation through the Confluent Hub Client is simple. Use the following command line.

confluent-hub install jcustenborder/kafka-connect-solr:latest

Manual Installation

  1. Compile the source code with mvn clean package
  2. Create a subdirectory called kafka-connect-solr under the plugin.path on your connect worker.
  3. Extract the contents of the zip file from target/components/packages/ to the directory you created in the previous step.
  4. Restart the connect worker.