commit | 3114f33c022bba02f1a7e542408ea4401120b7cd | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Sat Dec 18 01:56:18 2021 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jan 20 22:29:05 2022 +0000 |
tree | 69e49cac0d0142e6687c5ce1653194b0b378d725 | |
parent | d64cc6be78118d0d3440e2aa00034e5a43efa48f [diff] |
Fix Kafka REST Proxy accepts header for topic meta-data The topics meta-data should be accepted as KAFKA_V2 content type and not forced to be Kafka JSON payload. Using the KAFKA_V2_JSON content type would return a 415 Unsupported Media Type error. Change-Id: I5fe4a622902817d13a8933477f7f1b6106022e3c
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