centos下編譯安裝kafka-manager

kafka-manager項目地址:https://github.com/yahoo/kafka-manager

Releases版本下載:https://github.com/yahoo/kafka-manager/releases

編譯步驟:

1.安裝maven:yum -y install maven

2.安裝sbt:

curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
mv bintray-sbt-rpm.repo /etc/yum.repos.d/
yum -y install sbt

修改倉庫地址爲阿里雲(注意每行後面不能有空格):vim ~/.sbt/repositories  

[repositories]
local
aliyun: http://maven.aliyun.com/nexus/content/groups/public/
typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
sonatype-oss-releases
maven-central
sonatype-oss-snapshots

3.下載並解壓kafka-manager源碼:

unzip kafka-manager-2.0.0.2.zip

4.執行編譯命令:

cd kafka-manager-2.0.0.2/
./sbt clean dist

5.等待結果如下說明編譯成功:

6. 進入 target/universal 目錄下能看到 kafka-manager-2.0.0.2.zip

unzip kafka-manager-2.0.0.2.zip

7.啓動服務

啓動zk集羣,kafka集羣,再啓動kafka-manager服務。

bin/kafka-manager 默認的端口是9000,
可通過 -Dhttp.port,指定端口; 
-Dconfig.file=conf/application.conf指定配置文件:

nohup bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=8080 &

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章