安装CMAK - Kafka管理器的问题

2ledvvac  于 2023-10-15  发布在  Apache
关注(0)|答案(1)|浏览(139)

我正在ubuntu 20.4上尝试CMAK,我正在按照https://github.com/yahoo/CMAKhttps://codeforgeek.com/setting-up-kafka-management-for-kafka-cluster/上的说明操作。运行命令./sbt clean dist并尝试切换到目录/target/后,我看不到universal目录。有什么我错过了吗?
请看下面的截图。
运行后:./sbt clean dist .我得到下面的结果.

root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# ./sbt clean dist
 [info] Loading settings for project cmak-master-build from plugins.sbt ...
 [info] Loading project definition from /opt/CMAK-master/project
 [info] Loading settings for project root from build.sbt ...
 [info] Set current project to cmak (in build file:/opt/CMAK-master/)
 [success] Total time: 1 s, completed Apr 4, 2021, 10:40:07 AM
 Warning: node.js detection failed, sbt will use the Rhino based 
 Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.
 [info] Wrote /opt/CMAK-master/target/scala-2.12/cmak_2.12-3.0.0.5.pom
 [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
 [info] Main Scala API documentation to /opt/CMAK-master/target/scala-2.12/api...
 [info] Compiling 136 Scala sources and 2 Java sources to /opt/CMAK- 
 master/target/scala-2.12/classes ...
 model contains 640 documentable templates
 [info] Main Scala API documentation successful.
 [info] LESS compiling on 1 source(s)
 ./sbt: line 241:  7926 Killed                  "$@"
 root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# 


 | => root / Web-assets / less 122s
 | => root / Compile / compileIncremental 352s

之后,当导航到target目录时,没有universal目录。

root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# ls
 LICENSE  README.md  app  build.sbt  conf  img  project  public  sbt  
 src  target  test
 root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# cd target/
 root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK- 
 master/target# ls
 scala-2.12  streams  web / less 122s
 root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master/target# ls
 scala-2.12  streams  web
 root@ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master/target#
wpx232ag

wpx232ag1#

如何启动Kafka-Manager?
1.下载Scala https://www.scala-sbt.org/download.html并安装。
1.在此位置克隆yahoo CMAK git report C:\Kafka_Manager\CMAK

  • 下面是我们必须在Kafka Manager位置上执行命令序列。
  • sbt clean::clean directory
  • sbt compile::compile directory
  • sbt run::execute web application

停止执行

  • netstat -ano | findstr :9000
  • taskkill /PID 3708 /F
  • 成功执行此命令后,当你访问localhost:9000下面的错误触发器上的命令。
  • 无法运行程序“node”:错误的参数嵌入了引号;解决方案:在程序文件(X86)> sbt > conf > sbtconfig -Djdk.lang.Process.allowAmbiguousCommands=true保存IT下面添加一行。
  • 无法规范化地址kafka-manager-zookeeper:2181,因为它不是可解析的解决方案::C:\kafka_2.13-3.5.1\Kafka_Manager\CMAK\conf\application.conf将文本kafka-manager-zookeeper:2181更改为localhost:2181或者您可以使用相关的zookeeper URL。

访问localhost:9000并检查您的集群和一切显示正常。

相关问题