Wednesday, December 31, 2014

Kafka Web Console

  1. Introduction
    1. Kafka Web Console is a Java web application for monitoring Apache Kafka. With a modern web browser, you can view from the console
      1. Registered brokers
      2. Topics, partitions, log sizes, and partition leaders
      3. Consumer groups, individual consumers, consumer owners, partition offsets and lag
      4. Graphs showing consumer offset and lag history as well as consumer/producer message throughput history
      5. Latest published topic messages (requires web browser support for WebSocket)
  2. Prerequisite
    1. Typesafe Activator
      1. download
        1. https://typesafe.com/platform/getstarted or
        2. wget http://downloads.typesafe.com/typesafe-activator/1.2.10/typesafe-activator-1.2.10.zip?_ga=1.45331555.679995947.1412749425
      2. unzip typesafe-activator-1.2.10.zip\?_ga\=1.191598701.679995947.1412749425
      3. export PATH=$PATH:/relativePath/to/activator
      4. activator -help
    2. Play Framework
      1. download
        1. https://www.playframework.com/ or
        2. wget http://downloads.typesafe.com/play/2.2.5/play-2.2.5.zip
      2. unzip play-2.2.5.zip
      3. export PATH=$PATH:/relativePath/to/play
  3. installation
    1. wget https://github.com/claudemamo/kafka-web-console/archive/master.zip
    2. unzip master.zip
    3. cd kafka-web-console-master
    4. play start
    5. error
      1. Database 'default' needs evolution!
        1. play "start -DapplyEvolutions.default=true"
      2. org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:9000
        1. play "start -Dhttp.port=8080"
    6. http://hostname:8080/
  4. Register
    1. zookeepers -> resiger zookeeper
  5. Reference
    1. https://github.com/claudemamo/kafka-web-console

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.