MCE Consumer is a Kafka Streams job. Its main function is to listen
MetadataChangeEvent
Kafka topic for messages and process those messages and writes new metadata to DataHub GMS
.
After every successful update of metadata, GMS fires a MetadataAuditEvent
and this is consumed by
MAE Consumer Job.
- You need to have JDK8 installed on your machine to be
able to build
DataHub GMS
.
MCE Consumer Job
is already built as part of top level build:
./gradlew build
However, if you only want to build MCE Consumer Job
specifically:
./gradlew :metadata-jobs:mce-consumer-job:build
Before starting MCE Consumer Job
, you need to make sure that Kafka, Schema Registry & Zookeeper
and DataHub GMS Docker containers are up and running.
Quickest way to try out MCE Consumer Job
is running the Docker image.
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:mce-consumer-job:bootRun
To debug with an IDE (i.e. IntelliJ), run the bootRun
task with the --debug-jvm
flag. This will launch the app and
listen on port 5005 for a remote debugger.
./gradlew :metadata-jobs:mce-consumer-job:bootRun --debug-jvm
Spring boot actuator has been enabled for MCE Application.
healthcheck
, metrics
and info
web endpoints are enabled by default.
healthcheck
- http://localhost:9090/actuator/health
metrics
- http://localhost:9090/actuator/metrics
To retrieve a specific metric - http://localhost:9090/actuator/metrics/kafka.consumer.records.consumed.total