Kafka Connect的Web工具|
This is a web tool for Kafka Connect for setting up and managing connectors for multiple connect clusters.
kafka-connect-ui.demo.lenses.io
docker run --rm -it -p 8000:8000 \
-e "CONNECT_URL=http://connect.distributed.url" \
landoop/kafka-connect-ui
The CONNECT_URL can be a comma separated array of Connect worker endpoints. E.g: CONNECT_URL=http://connect.1.url,http://connect.2.url“
Additionally you can assign custom names to your Connect clusters by appending a semicolon and the cluster name after the endpoint URL. E.g:
"CONNECT_URL=http://connect.1.url;dev cluster,http://connect.2.url;production cluster"
Web UI will be available at localhost:8000
git clone https://github.com/Landoop/kafka-connect-ui.git
cd kafka-connect-ui
npm install -g bower http-server
npm install
http-server -p 8080 .
Web UI will be available at localhost:8080
If you use nginx
to serve this ui, let angular manage routing with
location / {
try_files $uri $uri/ /index.html =404;
root /folder-with-kafka-connect-ui/;
}
Use multiple Kafka Connect clusters in env.js
:
var clusters = [
{
NAME:"prod", //unique name is required
KAFKA_CONNECT: "http://kafka-connect.prod.url", //required
KAFKA_TOPICS_UI: "http://kafka-topics-ui.url", //optional
KAFKA_TOPICS_UI_ENABLED: true //optional
COLOR: "#141414" //optional
},
{
NAME:"dev",
KAFKA_CONNECT: "http://kafka-connect.dev.url",
KAFKA_TOPICS_UI_ENABLED: false
},
{
NAME:"local",
KAFKA_CONNECT: "http://kafka-connect.local.url",
}
]
KAFKA_TOPICS_UI
and KAFKA_TOPICS_UI_ENABLED
to navigate to the relevant topic when you have kafka-topics-ui installed.COLOR
to set different header colors for each set up cluster.For our 25+ stream-reactor Kafka Connectors we have a template of metadata within the supported-connectors.js
. In any case you will be shown all the existing connectors in your classpath with all the required fields to set them up.
The project is licensed under the BSL license.
www.landoop.com