commit | bc7edc8b30510b8ca5b85db677789d1fcfcd7e08 | [log] [tgz] |
---|---|---|
author | Daniele Sassoli <danielesassoli@gmail.com> | Mon Jul 03 11:49:45 2023 -0700 |
committer | Daniele Sassoli <danielesassoli@gmail.com> | Tue Jul 04 22:18:25 2023 -0700 |
tree | 24dce65f595d830edbc904f92aa7d56e64c79c5c | |
parent | a865b6a4150c09fa04bf4c3c69ceb4f0d578caa1 [diff] |
Pass correct amount of arguments to Malformed event log line Change-Id: Iefa520f5a2516ae57f6fa5023ed9ae77f4ec2971
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.
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