commit | 39bbba8c62c1c8042785706ce39c3dec87a3106e | [log] [tgz] |
---|---|---|
author | Marcin Czech <maczech@gmail.com> | Mon Dec 30 19:11:00 2019 +0100 |
committer | Marcin Czech <maczech@gmail.com> | Thu Jan 09 09:57:21 2020 +0100 |
tree | a46381063a4753ead7af4197a6d65703932c1c5a | |
parent | 2b76d22dbf124335806d0ae170cd959592e9841d [diff] | |
parent | 5c5790bf3bca4dde9fe78481c33c7f45d7a0f4ca [diff] |
Merge branch 'stable-3.0' * stable-3.0: Implement broker api replayAllEvents functionality Fix issue with kafka subscribers properties Change-Id: I0b19ec6077e7ca1396b22c73b7af4bc3a058849c
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/kafka-events gerrit/plugins/kafka-events cd gerrit rm plugins/external_plugin_deps.bzl ln -s ./kafka-events/external_plugin_deps.bzl plugins/.
To build the kafka-events plugins, issue the command from the Gerrit source path:
bazel build plugins/kafka-events
The output is created in
bazel-genfiles/plugins/kafka-events/kafka-events.jar
Assuming a running Kafka broker on the same Gerrit host, add the following settings to gerrit.config:
[plugin "kafka-events"] bootstrapServers = localhost:9092