Kafka: GUI

 12th November 2021 at 3:51pm

provectus/kafka-ui 美观易用,可以很方便用 Docker 起一个容器。一个示例:

docker run -p 9123:8080 -e KAFKA_CLUSTERS_0_NAME=local \
  -e KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=1.1.1.1:9093 \
  -e KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL=SASL_PLAINTEXT \
  -e KAFKA_CLUSTERS_0_PROPERTIES_SASL_MECHANISM=PLAIN \
  -e KAFKA_CLUSTERS_0_PROPERTIES_SASL_JAAS_CONFIG='org.apache.kafka.common.security.plain.PlainLoginModule required username="username" password="pa55w0rd";' \
  --rm provectuslabs/kafka-ui:latest