我正在 ubuntu 20.4 上尝试 CMAK,并且遵循 https://github.com/yahoo/CMAK 和 https://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#
如何启动Kafka-Manager?
下载 Scala https://www.scala-sbt.org/download.html 并安装它。
在此位置克隆 yahoo CMAK git 报告 C:\Kafka_Manager\CMAK
这是我们必须在 Kafka 管理器位置执行的命令序列。
sbt clean
:: 清理目录sbt compile
:: 编译目录sbt run
:: 执行网络应用程序停止执行
netstat -ano | findstr :9000
taskkill /PID 3708 /F
当你访问localhost:9000成功执行此命令后 下面在 cmd 上触发错误。