-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
107 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Usage with Self-Hosted Kafka | ||
|
||
## Installation | ||
|
||
1) Download the latest connector zip file from [Github Releases](https://github.com/qdrant/qdrant-kafka/releases). | ||
|
||
2) Configure an environment and cluster on Confluent and create a topic to produce messages for. | ||
|
||
3) Navigate to the `Connectors` section of the Confluent cluster and click `Add Plugin`. Upload the zip file with the following info. | ||
|
||
<img width="687" alt="Screenshot 2024-06-26 at 1 51 26 AM" src="https://github.com/qdrant/qdrant-kafka/assets/46051506/876bcef5-d862-40c6-a0e7-838f1586f222"> | ||
|
||
4) Once installed, navigate to the connector and set the following configuration values. | ||
|
||
<img width="899" alt="Screenshot 2024-06-26 at 1 45 57 AM" src="https://github.com/qdrant/qdrant-kafka/assets/46051506/3999976e-a89a-4a49-b53c-a2e5aee68441"> | ||
|
||
Replace the placeholder values with your credentials. | ||
|
||
5) Add the Qdrant instance host to the allowed networking endpoints. | ||
|
||
<img width="764" alt="Screenshot 2024-06-26 at 2 46 16 AM" src="https://github.com/qdrant/qdrant-kafka/assets/46051506/8aefd9c3-0584-4aa5-a70c-37c859f6ee1b"> | ||
|
||
7) Start the connector. | ||
|
||
## Usage | ||
|
||
You can now produce messages for the configured topic and they'll be written into the configured Qdrant instance. | ||
|
||
<img width="1271" alt="Screenshot 2024-06-26 at 2 50 56 AM" src="https://github.com/qdrant/qdrant-kafka/assets/46051506/3d798780-f236-4ac6-aea0-2b266dda4dba"> | ||
|
||
Refer to the [message formats](https://github.com/qdrant/qdrant-kafka/blob/main/README.md#message-formats) for the available options when producing messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Usage with Self-Hosted Kafka | ||
|
||
## Installation | ||
|
||
1) Download the latest connector zip file from [Github Releases](https://github.com/qdrant/qdrant-kafka/releases). | ||
|
||
2) Refer to the first 3 steps of the [Kafka Quickstart](https://kafka.apache.org/quickstart#quickstart_download) to set up a local Kafka instance and create a topic named `topic_0`. | ||
|
||
3) Navigate to the Kafka installation directory. | ||
|
||
4) Unzip and copy the `qdrant-kafka-xxx` directory to your Kafka installation's `libs` directory. | ||
|
||
5) Update the `connect-standalone.properties` file in your Kafka installation's `config` directory. | ||
|
||
```properties | ||
key.converter.schemas.enable=false | ||
value.converter.schemas.enable=false | ||
plugin.path=libs/qdrant-kafka-xxx | ||
``` | ||
|
||
6) Create a `qdrant-kafka.properties` file in your Kafka installation's `config` directory. | ||
```properties | ||
name=qdrant-kafka | ||
connector.class=io.qdrant.kafka.QdrantSinkConnnector | ||
qdrant.grpc.url=https://xyz-example.eu-central.aws.cloud.qdrant.io:6334 | ||
qdrant.api.key=<paste-your-api-key-here> | ||
topics=topic_0 | ||
``` | ||
7) Start Kafka Connect with the configured properties. | ||
```sh | ||
bin/connect-standalone.sh config/connect-standalone.properties config/qdrant-kafka.properties | ||
``` | ||
8) You can now produce messages for the `topic_0` topic and they'll be written into the configured Qdrant instance. | ||
|
||
```sh | ||
bin/kafka-console-producer.sh --topic topic_0 --bootstrap-server localhost:9092 | ||
> { "collection_name": "{collection_name}", "id": 1, "vector": [ 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8 ], "payload": { "name": "kafka", "description": "Kafka is a distributed streaming platform", "url": "https://kafka.apache.org/" } } | ||
``` | ||
|
||
Refer to the [message formats](https://github.com/qdrant/qdrant-kafka/blob/main/README.md#message-formats) for the available options when producing messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters