Simple app that runs Kafka locally using spring-kafka-test.
- Configuration-free
- Kafka downloaded through Maven
- Useful in restricted environments without Docker or alternatives
./run-kafka.sh
This will start Kafka on port 9092 with a topic topic
.
To change the port or topic, use the environment variables KAFKA_PORT
and KAFKA_TOPIC
:
KAFKA_PORT=12345 KAFKA_TOPIC=test-topic ./run-kafka.sh
Press Ctrl+C.