Navigation

Install MongoDB Kafka Connector

Overview

The MongoDB Kafka Connector build is available for both Confluent Kafka and Apache Kafka deployments.

Use the Confluent Kafka installation instructions for a Confluent Kafka deployment or the Apache Kafka installation instructions for an Apache Kafka deployment.

Install the Connector for Confluent Kafka

Install using the Confluent Hub Client

  1. Install the Confluent Hub Client if necessary.
  2. Install the MongoDB Connector for Apache Kafka component using the Confluent Hub Client.

Install Manually

  1. Follow the directions on the Confluent page for Manually Installing Community Connectors.
  2. Use the GitHub URL and uber JAR locations in the installation reference table when prompted in the Confluent manual installation instructions.

Install the Connector for Apache Kafka

  1. Locate and download the uber JAR which is suffixed with all to obtain all the dependencies required for the connector. Refer to the installation reference table for the uber JAR location.
  2. Copy the uber JAR into the Kafka plugins directory: /usr/local/share/kafka/plugins/

Note

If you are running distributed worker processes, you must repeat this process for each server or VM.

Installation Reference Table

Connector GitHub repository mongodb/mongo-kafka
Uber JAR (Maven Central) mongo-kafka-connect
Uber JAR (Sonatype OSS) mongodb-kafka