Windows 上的 Confluent KSQL 服务器 - 无法找到或加载主 class

Confluent KSQL server on Windows - could not find or load main class

我想连接到我自己的 Kafka 实例以尝试 KSQL。我下载了最新版本的 Confluent 开源平台 - https://www.confluent.io/download/

我按照 https://docs.confluent.io/current/ksql/docs/installation/server-config/index.html 并尝试在我的 Windows 10 机器上从 Git Bash:

启动 KSQL 服务器
ksql-server-start ksql-server.properties

但失败并出现以下错误:

Error: Could not find or load main class io.confluent.ksql.rest.server.KsqlServe                                                                                                                                                                                               rMain

我做错了什么以及如何正确启动它?

我添加了confluentinc/cp-ksql-server:5.0.0 Docker图片(下面是Maven io.fabric8 docker-maven-plugin代码):

<image>
    <name>confluentinc/cp-ksql-server:5.0.0</name>
    <alias>cp-ksql-server</alias>
    <run>
        <ports>
            <port>8088:8088</port>
        </ports>
        <links>
            <link>kafka:kafka</link>
        </links>
        <env>
            <KSQL_BOOTSTRAP_SERVERS>${local.ip}:9092</KSQL_BOOTSTRAP_SERVERS>
            <KSQL_LISTENERS>http://0.0.0.0:8088/</KSQL_LISTENERS>
            <KSQL_KSQL_SERVICE_ID>confluent_test_2</KSQL_KSQL_SERVICE_ID>
        </env>
    </run>
</image>

现在可以通过以下 CLI 映像连接到 KSQL CLI:

docker run -it confluentinc/cp-ksql-cli http://172.22.160.1:8088