kafka管理工具

前言

提示:这里可以添加本文要记录的大概内容:

一个好的界面管理工具可以使得开发效率更为高效,因kafka本身没有自研的管理工具!于是尝试安装市面上的一些辅助工具。

  • Kafka Assistan
  • Conduktor
  • kafka-maneger(已更名cmak)

一、Kafka Assistan

1.1 描述

Kafka Assistan------是一款对服务器状态监控的可视化图形工具,界面比较友好

  • window可用,linux安装失败
  • localhost可用,非本机使用需付费购买
  • 参考文档较少

192.168.10.101:9092

1.2、配置安装

地址 说明
http://www.redisant.cn/ka

界面如下:

二、Conduktor

2.1、描述

Conduktor是一款商业化的Apache Kafka Connector,可以使用该工具连接Kafka Cluster

  • 需注册账户
  • window可装,linux安装需授权(付费)
  • 免费版仅支持一个地址接入,且功能较少
  • 参考文档较少

2.2、配置安装

地址 说明
https://conduktor.io/download?spm=a2c6h.12873639.article-detail.7.39085cc0ygCD4y

界面如下:


三、kafka-maneger

3.1、描述

使用人群最多,因为功能不受限且免费!!!

  • 需要启动zookeeper服务
  • 极大概率java版本不兼容,需升级java版本(文内会附带教程)

3.2、配置安装

地址 说明
https://https://github.com/yahoo/CMAK/releases 使用已编译的格式为cmak-x.0.0.0.zip
python 复制代码
wget https://github.com/yahoo/CMAK/releases/download/3.0.0.6/cmak-3.0.0.6.zip
unzip cmak-3.0.0.6.zip -d /opt/module/
cd /opt/module/
ln -s cmak-3.0.0.3/ KafkaGUI
vim /opt/module/KafkaGUI/conf/application.conf  # 编辑配置文件

新增参数,kafka-manager.zkhosts;cmak.zkhosts

python 复制代码
# Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0
# See accompanying LICENSE file.

# This is the main configuration file for the application.
# ~~~~~

# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
play.crypto.secret="^<csmm5Fx4d=r2HEX8pelM3iBkFVv?k[mc;IZE<_Qoq8EkX_/7@Zt6dP05Pzea3U"
play.crypto.secret=${?APPLICATION_SECRET}
play.http.session.maxAge="1h"

# The application languages
# ~~~~~
play.i18n.langs=["en"]

play.http.requestHandler = "play.http.DefaultHttpRequestHandler"
play.http.context = "/"
play.application.loader=loader.KafkaManagerLoader

# Settings prefixed with 'kafka-manager.' will be deprecated, use 'cmak.' instead.
# https://github.com/yahoo/CMAK/issues/713
kafka-manager.zkhosts="kafka-manager-zookeeper:2181"
kafka-manager.zkhosts=${?ZK_HOSTS}
cmak.zkhosts="kafka-manager-zookeeper:2181"
cmak.zkhosts=${?ZK_HOSTS}
kafka-manager.zkhosts="127.0.0.1:2181"  # 浏览器访问服务地址,依据实际(127.0.0.1|192.168.10.101)填写为准
cmak.zkhosts="127.0.0.1:2181"

pinned-dispatcher.type="PinnedDispatcher"
pinned-dispatcher.executor="thread-pool-executor"
application.features=["KMClusterManagerFeature","KMTopicManagerFeature","KMPreferredReplicaElectionFeature","KMReassignPartitionsFeature", "KMScheduleLeaderElectionFeature"]

akka {
  loggers = ["akka.event.slf4j.Slf4jLogger"]
  loglevel = "INFO"
}

akka.logger-startup-timeout = 60s

basicAuthentication.enabled=false
basicAuthentication.enabled=${?KAFKA_MANAGER_AUTH_ENABLED}

basicAuthentication.ldap.enabled=false
basicAuthentication.ldap.enabled=${?KAFKA_MANAGER_LDAP_ENABLED}
basicAuthentication.ldap.server=""
basicAuthentication.ldap.server=${?KAFKA_MANAGER_LDAP_SERVER}
basicAuthentication.ldap.port=389
basicAuthentication.ldap.port=${?KAFKA_MANAGER_LDAP_PORT}
basicAuthentication.ldap.username=""
basicAuthentication.ldap.username=${?KAFKA_MANAGER_LDAP_USERNAME}
basicAuthentication.ldap.password=""
basicAuthentication.ldap.password=${?KAFKA_MANAGER_LDAP_PASSWORD}
basicAuthentication.ldap.search-base-dn=""
basicAuthentication.ldap.search-base-dn=${?KAFKA_MANAGER_LDAP_SEARCH_BASE_DN}
basicAuthentication.ldap.search-filter="(uid=$capturedLogin$)"
basicAuthentication.ldap.search-filter=${?KAFKA_MANAGER_LDAP_SEARCH_FILTER}
basicAuthentication.ldap.group-filter=""
basicAuthentication.ldap.group-filter=${?KAFKA_MANAGER_LDAP_GROUP_FILTER}
basicAuthentication.ldap.connection-pool-size=10
basicAuthentication.ldap.connection-pool-size=${?KAFKA_MANAGER_LDAP_CONNECTION_POOL_SIZE}
basicAuthentication.ldap.ssl=false
basicAuthentication.ldap.ssl=${?KAFKA_MANAGER_LDAP_SSL}

basicAuthentication.username="admin"
basicAuthentication.username=${?KAFKA_MANAGER_USERNAME}
basicAuthentication.password="password"
basicAuthentication.password=${?KAFKA_MANAGER_PASSWORD}

basicAuthentication.realm="Kafka-Manager"
basicAuthentication.excluded=["/api/health"] # ping the health of your instance without authentification


kafka-manager.consumer.properties.file=${?CONSUMER_PROPERTIES_FILE}

3.3、命令启动

python 复制代码
cd /opt/module/KafkaGUI/bin
./cmak
浏览器访问:http://127.0.0.1:9000


3.4、refer to


相关推荐
guo_wen_qiang1 天前
kafka重复消费
分布式·kafka
ClouGence2 天前
开源数据库管理工具 CloudDM 4.4.0 发布,新增 Kafka、SAP HANA 数据源
数据库·kafka
RobinXYuan2 天前
【Kafka 源码手记】01 从消息队列到 Event Streaming
kafka·源码阅读
nvd113 天前
深入剖析:GCP Pub/Sub 与 Apache Kafka 对消息处理延迟与消费者卡死的处理机制异同
分布式·kafka·apache
笔墨登场说说4 天前
centos 8 使用 kafka_2.13-4.3.1.tgz 安装kafka
linux·kafka·centos
guo_wen_qiang4 天前
kafka一直restarting,报错InconsistentClusterIdException
分布式·kafka
今年下半年4 天前
【消息队列】Spring Boot 集成 Kafka 消息队列:确保消费完成(手动提交偏移量+幂等判断+失败重试机制)
spring boot·kafka·幂等·失败重试
此时不提桶,更待何时5 天前
06-14-A-Kafka集群运维与迁移实战详解
运维·kafka
yumgpkpm5 天前
Acceldata ODP(Open Data Platform)3.3.6.4(RHEL9)保姆级完整安装手册
大数据·人工智能·hive·hadoop·kafka·hbase·cloudera
用户1494484813205 天前
Raft 为什么取代了 Paxos?从 DLedger 和 KRaft 的技术选型聊起
kafka·raft