The connector plugin needs to be downloaded manually. Here's the fastest way:
Option A: Using wget/curl (if you know the version):
mkdir -p docker/kafka-connect/plugins/opensearch-sink/lib
cd docker/kafka-connect/plugins/opensearch-sink/lib
# Try one of these URLs (check GitHub for the latest):
wget https://github.com/opensearch-project/opensearch-kafka-connect/releases/download/v2.3.0.0/opensearch-sink-connector-2.3.0.0.jarOption B: Manual Download:
- Visit: https://github.com/opensearch-project/opensearch-kafka-connect/releases
- Find the latest release
- Download the
opensearch-sink-connector-*.jarfile - Place it in:
docker/kafka-connect/plugins/opensearch-sink/lib/
docker compose restart kafka-connectcurl http://localhost:8083/connector-plugins | jq '.[] | select(.class | contains("Opensearch"))'You should see the connector class listed.
./scripts/deploy-connectors.sh./scripts/check-connectors.shIf you prefer to use Confluent's connector (compatible with Elasticsearch):
- The connector configurations use
org.opensearch.kafka.connect.OpensearchSinkConnector - You can modify them to use
io.confluent.connect.elasticsearch.ElasticsearchSinkConnectorinstead - Install via:
confluent-hub install confluentinc/kafka-connect-elasticsearch:latest
However, the OpenSearch connector is recommended as it's designed for both OpenSearch and Elasticsearch.