【问题标题】:Not able to start Confluent Kafka on Windows subsystem for Linux(WSL)无法在适用于 Linux(WSL)的 Windows 子系统上启动 Confluent Kafka
【发布时间】:2021-07-03 06:35:28
【问题描述】:

我正在尝试使用 WSL 在 Windows 上安装 Confluent。我已经完成了这里描述的大部分设置,但是在尝试启动 confluence 时遇到以下错误

sai@DESKTOP-IRLOG8O:~$ confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html

Using CONFLUENT_CURRENT: /tmp/confluent.266515
Error: fork/exec /mnt/c/jdk-15.0.2/bin/java: no such file or directory

这是我的 JAVA_HOME

sai@DESKTOP-IRLOG8O:~$ echo $JAVA_HOME
/mnt/c/jdk-15.0.2

这也意味着我的 Windows 机器上的路径 C:\jdk-15.0.2

中有 Java

在我的 WSL bash 中,我可以在路径 /mnt/c/jdk-15.0.2/bin 下看到文件 java

我不确定这里有什么问题?请帮助解决这个问题。如果需要任何其他详细信息,请告诉我。

【问题讨论】:

    标签: apache-kafka windows-subsystem-for-linux confluent-platform wsl-2


    【解决方案1】:

    我有一个解决方案。不知何故,我的 JAVA_HOME 路径中的空间没有得到正确解决。我将 Windows 机器上的 JDK 路径移动到没有任何空格的路径,问题得到解决。 WSL Linux 主机使用挂载在 /mnt/c/

    中的 JAVA_HOME 路径

    【讨论】:

      猜你喜欢
      • 2018-08-28
      • 2019-07-03
      • 2021-12-31
      • 2021-05-05
      • 1970-01-01
      • 2017-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多