commit | a868a5518144795c5171ab7257668c0b64d1d1b1 | [log] [tgz] |
---|---|---|
author | Fabio Ponciroli <ponch78@gmail.com> | Tue May 09 15:12:46 2023 +0100 |
committer | Fabio Ponciroli <ponch78@gmail.com> | Tue May 09 15:16:56 2023 +0100 |
tree | 8aff4a39b1c56fd285d866f184263c9715c88cc7 | |
parent | cbf7fe0662917db5bf6e589ebcd16ca368ab7ee4 [diff] |
Pass PluginMapContext to WorkQueue WorkQueue was modified in this change I28907e271 Change-Id: I8c55f8c6dd1f05bfddb5ff3efafcb030e1b61a8e
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