安装 CMAK - kafka 管理器时出现问题

问题描述 投票:0回答:1

我正在 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# 
apache-kafka sbt yahoo-kafka-manager
1个回答
0
投票

如何启动Kafka-Manager?

  1. 下载 Scala https://www.scala-sbt.org/download.html 并安装它。

  2. 在此位置克隆 yahoo CMAK git 报告 C:\Kafka_Manager\CMAK

  3. 这是我们必须在 Kafka 管理器位置执行的命令序列。

    • sbt clean
      :: 清理目录
    • sbt compile
      :: 编译目录
    • sbt run
      :: 执行网络应用程序

    停止执行

    • netstat -ano | findstr :9000
    • taskkill /PID 3708 /F
  4. 当你访问localhost:9000成功执行此命令后 下面在 cmd 上触发错误。

    • 无法运行程序“node”:格式错误的参数嵌入了引号; 解决方案 :: 添加以下行 Program File(X86) > sbt > conf > sbtconfig -Djdk.lang.Process.allowAmbigouslyCommands=true 保存它。
    • 无法规范化地址 kafka-manager-zookeeper:2181,因为它无法解析 解决方案::C:\kafka_2.13-3.5.1\Kafka_Manager\CMA
© www.soinside.com 2019 - 2024. All rights reserved.