Skip to main content

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.


  • You need to have JDK8 installed on your machine to be able to build DataHub GMS.


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:mae-consumer-job:build


Before starting MAE Consumer Job, you need to make sure that Kafka, Schema Registry & Zookeeper, Elasticsearch, and Neo4j 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:mae-consumer-job:bootRun


Spring boot actuator has been enabled for MAE Application. healthcheck, metrics and info web endpoints are enabled by default.

healthcheck - http://localhost:9091/actuator/health

metrics - http://localhost:9091/actuator/metrics

To retrieve a specific metric - http://localhost:9091/actuator/metrics/process.uptime