kafka-manager监控工具的搭建(sbt安装与编译)以及遇到的问题

1.下载sbt

http://www.scala-sbt.org/download.html

2.解压sbt

	[hadoop@hadoop01004 software]$ tar -zxvf sbt-0.13.16.tgz -C /home/hadoop/app/

3.配置sbt环境变量

这个版本的sbt编译不了最新的kafka-manager,如下只是安装过程

	[hadoop@hadoop01004 ~]$ vi .bash_profile
	export SBT_HOME=/home/hadoop/app/sbt
	export PATH=$SBT_HOME/bin:$PATH
	[hadoop@hadoop01004 ~]$ . .bash_profile

	查看sbt版本
	[hadoop@hadoop01004 ~]$ sbt sbtVersion
	[info] Loading project definition from /home/hadoop/project
	[info] Set current project to hadoop (in build file:/home/hadoop/)
	[info] 0.13.16

4.配置java环境

省略。。(要求jdk1.8以上

5.下载kafka-manager并编译

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

	[hadoop@hadoop01004 compliesoft]$ git clone https://github.com/yahoo/kafka-manager.git
	(如果没有git,可以yum install -y git)
	[hadoop@hadoop01004 compliesoft]$ cd kafka-manager/
	[hadoop@hadoop01004 kafka-manager]$ sbt clean dist

编译失败。。。。。。
重新来
查资料后,得知可能是因为sbt版本问题。于是在自己电脑安装了sbt,重新开始,sbt版本如下:

	192:~ apple$ sbt sbtVersion
	[info] Loading project definition from /Users/apple/project
	[info] Set current project to apple (in build file:/Users/apple/)
	[info] 1.2.8

重新开始编译:

	进入kafka-manager目录:
	192:kafka-manager apple$ sbt universal:packageBin
	[info] Loading settings for project kafka-manager-build from plugins.sbt ...
	[info] Loading project definition from /Users/apple/Documents/BigData_Notekafka_manager/kafka-manager/project
	[info] Updating ProjectRef(uri("file:/Users/apple/Documents/BigData_Note/kafka_manager/kafka-manager/project/"), "kafka-manager-build")...
	[info] downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.12/sbt_1.0/2.6.21/jars/sbt-plugin.jar 
	...

经过一番等待后,成功
kafka-manager监控工具的搭建(sbt安装与编译)以及遇到的问题_第1张图片

你可能感兴趣的:(kafka,大数据,安装部署教程,报错)