Skip to content

Commit

Permalink
Script for installing and setting-up datagen kafka connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Jun 12, 2023
1 parent 5a08423 commit 9b3da3a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/install-connectors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

confluent-hub install confluentinc/kafka-connect-datagen:0.6.0

confluent-hub install confluentinc/kafka-connect-avro-converter:7.3.1
5 changes: 5 additions & 0 deletions bin/setup-connectors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -eux

/usr/local/bin/confluent local services connect connector load datagen-pageviews --config config/connector_datagen-pageviews.config
15 changes: 15 additions & 0 deletions config/connector_datagen-pageviews.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "datagen-pageviews",
"config": {
"connector.class": "io.confluent.kafka.connect.datagen.DatagenConnector",
"kafka.topic": "pageviews",
"quickstart": "pageviews",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://localhost:8081",
"value.converter.schemas.enable": "true",
"max.interval": 100,
"iterations": 10000000,
"tasks.max": "1"
}
}

0 comments on commit 9b3da3a

Please sign in to comment.