Kafka messages are serialized using Avro. Avro schemas are located in the kafka/schemas directory. To generate sources from Avro schema, run the following command:
mvn generate-sources
mvn test
Topics and schemas are set up automatically when starting the Kafka cluster. Docker compose uses the scripts create-topics.sh and create-schemas.sh to set up topics and schemas.
docker-compose up -d
If you have problems starting kafka, check if all health checks are ok. Make sure number at the end (after 'grep') matches desired topics.
Start statistics service locally using maven. Use Spring profile dev.
mvn spring-boot:run -Dspring-boot.run.profiles=dev
Check if schema id is correct in the script. This should be 1 if there is only one schema in your registry.
sh ./kafka/produce-rdf-parse-events.sh
sh ./kafka/produce-dataset-remove-events.sh