JR Source Connector for Apache Kafka Connect. JR (jrnd.io) is a CLI program that helps you to stream quality random data for your applications.
kafka-connect-jr-source
is a Kafka Connect connector for generating mock data for testing and is not suitable for production scenarios. It is available in the StreamNative Cloud.
The JR Source Connector can be configured using the following properties:
Parameter | Description | Default |
---|---|---|
template | A valid JR existing template name. Skipped when embedded_template is set. | net_device |
topic | Destination topic on Kafka | |
frequency | Repeat the creation of a random object every ‘frequency’ milliseconds. | 5000 |
duration | Set a time bound to the entire object creation. The duration is calculated starting from the first run and is expressed in milliseconds. At least one run will always been scheduled, regardless of the value for ‘duration’. If not set creation will run forever. | -1 |
objects | Number of objects to create at every run. | 1 |
key_field_name | Name for key field, for example ‘ID’. This is an OPTIONAL config, if not set, objects will be created without a key. Skipped when key_embedded_template is set. Value for key will be calculated using JR function key . | |
key_value_interval_max | Maximum interval value for key value, for example 150 (0 to key_value_interval_max). Skipped when key_embedded_template is set. | 100 |
value.converter | One between org.apache.kafka.connect.storage.StringConverter , io.confluent.connect.avro.AvroConverter , io.confluent.connect.json.JsonSchemaConverter or io.confluent.connect.protobuf.ProtobufConverter | org.apache.kafka.connect.storage.StringConverter |
value.converter.schema.registry.url | Only if value.converter is set to io.confluent.connect.avro.AvroConverter , io.confluent.connect.json.JsonSchemaConverter or io.confluent.connect.protobuf.ProtobufConverter . URL for Schema Registry. | |
key.converter | One between org.apache.kafka.connect.storage.StringConverter , io.confluent.connect.avro.AvroConverter , io.confluent.connect.json.JsonSchemaConverter or io.confluent.connect.protobuf.ProtobufConverter | org.apache.kafka.connect.storage.StringConverter |
key.converter.schema.registry.url | Only if key.converter is set to io.confluent.connect.avro.AvroConverter , io.confluent.connect.json.JsonSchemaConverter or io.confluent.connect.protobuf.ProtobufConverter . URL for Schema Registry. |