commit | 7de5f9297f93547bcd7ae90bfa76624a9bfa2272 | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Wed May 17 08:38:34 2023 +0200 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Wed May 17 08:38:34 2023 +0200 |
tree | 8a3211eaaf23b9a10d07be802c1d39eb2d8b1bf3 | |
parent | a868a5518144795c5171ab7257668c0b64d1d1b1 [diff] | |
parent | 68a86bfa5c1a50071eb8879701ab3008dbdddfb8 [diff] |
Merge branch 'stable-3.7' * stable-3.7: Bump up events-broker version to 3.7.2 Change-Id: I7f90d8e8f7323e0f92d0a293a718f960cfcf187f
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 later.
linux
java-1.8
Bazel
Kafka 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://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.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