MetadataAuditEvent (MAE) Consumer Job
MAE Consumer is a Kafka Streams job. Its main function is to listen
MetadataAuditEvent Kafka topic for messages and process those messages using index builders.
Index builders create search document model by processing MAE and then these documents are indexed into Elasticsearch.
So, this job is providing us a near-realtime search index update.
Pre-requisites
- You need to have JDK8
installed on your machine to be able to build
Data Hub GMS.
Build
MAE Consumer Job is already built as part of top level build:
./gradlew build
However, if you only want to build MAE Consumer Job specifically:
./gradlew :metadata-jobs:elasticsearch-index-job:build
Dependencies
Before starting MAE Consumer Job, you need to make sure that Kafka, Schema Registry & Zookeeper and
Elasticsearch Docker containers are up and running.
Start via Docker image
Quickest way to try out MAE Consumer Job is running the Docker image.
Start via command line
If you do modify things and want to try it out quickly without building the Docker image, you can also run the application directly from command line after a successful build:
./gradlew :metadata-jobs:elasticsearch-index-job:run