Kafka manager to compile source code

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_22222499/article/details/93379364

kafka kafka manager as the monitoring of open source monitoring software, very easy to use, before downloaded a compiled version of someone else, that version is too old, would have been an error in 0.10 above kafka, leading to not see the consumer in monitoring interface, also see the offset, so I think personally download the source code to compile a

1. Download Source

git clone https://github.com/yahoo/kafka-manager.git

2. Install sbt build environment

Download https://www.scala-sbt.org/download.html
best is to download the zip package, unpack and configure their own environment variables, so the fastest
execution can be opened directly sbt command input window, then proved no problem to install it
Create a new file in the repositories sbt directory
modifications mirrored address, accelerate download jar package

[repositories]
  local
  cassandra: https://dl.bintray.com/spark-packages/maven/
  ali: http://maven.aliyun.com/nexus/content/groups/public/
  jcenter: http://jcenter.bintray.com/
  sbt: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/
  typesafe_repo: http://repo.typesafe.com/typesafe/releases
  typesafe-sbt-plugins: http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
  typesafe-ivy-releases: http://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
  sonatype-oss-releases
  maven-central

3. Start compilation

cd source directory execute sbt clean dist command, began to slow long wait, the middle may be stuck, get rid continue again, if reported what package dependency resolution can not,
go directly to the warehouse this jar is deleted, and then continue with this command, warehouse sbt address reference document preparation and I am probably tried five times the command was successful compilation friends

It will eventually generate a zip file
Here Insert Picture Description

4. Use deployment

Extract the zip bag, so as to modify application.conf

kafka-manager.zkhosts="centos-6:2181"

5. Start

bin / kafka-manager remember kafka open the jmx-port to port, the default http port is 9000

6. Check Interface

Perfect call it a day
Here Insert Picture Description

7. Download

Compiled package has been uploaded https://download.csdn.net/download/qq_22222499/11255056

Guess you like

Origin blog.csdn.net/qq_22222499/article/details/93379364