CMAK安装

813 阅读1分钟

CMAK (Cluster Manager for Apache Kafka)

CMAK(以前叫做Kafka Manager)是一个kafka集群管理工具。支持如下特性:

  • Manage multiple clusters

  • Easy inspection of cluster state (topics, consumers, offsets, brokers, replica distribution, partition distribution)

  • Run preferred replica election

  • Generate partition assignments with option to select brokers to use

  • Run reassignment of partition (based on generated assignments)

  • Create a topic with optional topic configs (0.8.1.1 has different configs than 0.8.2+)

  • Delete topic (only supported on 0.8.2+ and remember set delete.topic.enable=true in broker config)

  • Topic list now indicates topics marked for deletion (only supported on 0.8.2+)

  • Batch generate partition assignments for multiple topics with option to select brokers to use

  • Batch run reassignment of partition for multiple topics

  • Add partitions to existing topic

  • Update config for existing topic

  • Optionally enable JMX polling for broker level and topic level metrics.

  • Optionally filter out consumers that do not have ids/ owners/ & offsets/ directories in zookeeper.

下载地址:https://github.com/yahoo/CMAK

安装:

  1. 编辑application.conf配置文件

    # 修改zk地址
    ZK_HOSTS="192.168.94.151:2181"
    
  2. 启动

    bin/cmak -Dconfig.file=conf/application.conf -java-home $JAVA_HOME  -Dhttp.port=9001