sink
Kafka Connect Milvus Sink
The official Milvus Kafka Connect Sink connector.

Available on
StreamNative Cloud console

Authored by
Zilliz
Support type
Community
License
Apache License 2.0

The Milvus Kafka Connect Sink connector is a Kafka Connect connector that writes data from Kafka topics to Milvus.

Prerequisites

  • If you don't already have a collection in Zilliz Cloud or Milvus cluster, create a collection with a vector field.
  • Collect the endpoint, token, and collection.name parameters from your Zilliz Cloud instance or Milvus cluster.

Configuration

The Milvus Kafka Connect Sink connector is configured using the following Required properties:

ParameterDescription
public.endpointThe endpoint of your Zilliz Cloud instance or Milvus cluster.
tokenThe token of your Zilliz Cloud instance or Milvus cluster.
collection.nameThe name of the collection to write to.
topicsThe Kafka topics to read from.

For more information about the configuration properties, see the offical Milvus Kafka Connect Sink Connector documentation.

Known Issues

  1. The Milvus Kafka Connect Sink connector does not support the dynamic fields feature yet, and when the dynamic fields feature enabled on the Milvus server, or enabled on the Zilliz Cloud instance, the connector will not work properly and throw below error:
2024-09-23T21:21:24,441+0000 [task-thread-mysink13-0] ERROR org.apache.kafka.connect.runtime.WorkerSinkTask - WorkerSinkTask{id=mysink13-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted. Error: 'com.google.protobuf.Internal$ProtobufList io.milvus.grpc.JSONArray.emptyList(java.lang.Class)'
java.lang.NoSuchMethodError: 'com.google.protobuf.Internal$ProtobufList io.milvus.grpc.JSONArray.emptyList(java.lang.Class)'

When you encounter this issue, please disable the dynamic fields feature on the Milvus server or Zilliz Cloud instance.