https://github.com/automq/schemamessagewriter
https://github.com/automq/schemamessagewriter
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/automq/schemamessagewriter
- Owner: AutoMQ
- Created: 2024-12-23T03:29:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-25T09:49:04.000Z (over 1 year ago)
- Last Synced: 2025-04-22T19:18:44.852Z (about 1 year ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema Message Writer
> A demo utility tool for AutoMQ, designed to generate and send messages based on Avro schemas. This tool helps demonstrate AutoMQ's Kafka-compatible features by providing an easy way to produce test messages that conform to specified Avro schemas.
## Features
- Generate random data based on Avro schema definitions
- Integrate with Kafka Schema Registry
- Configure message count and sending intervals
- Command-line interface support
## Installation
```bash
git clone https://github.com/AutoMQ/schema-message-writer.git
cd schema-message-writer
mvn clean install
```
## Quick Start
1. Start Kafka and Schema Registry
2. Run the application:
```bash
java -jar target/schema-message-writer-1.0-SNAPSHOT-jar-with-dependencies.jar \
-b localhost:9092 \
-r http://localhost:8081 \
-t your-topic \
-s schema.json
```
## Configuration
| Option | Description | Default |
|--------|-------------|---------|
| -b, --bootstrap-servers | AutoMQ bootstrap servers | localhost:9092 |
| -r, --schema-registry | Schema Registry URL | Required |
| -t, --topic | Kafka topic name | Required |
| -s, --schema | Schema JSON file/string | Required |
| -c, --count | Number of messages | 1 |
| -d, --delay | Delay between messages (ms) | 1000 |