首页 > 解决方案 > 在 windows 中无法从 confluent 启动模式注册表

问题描述

我从这里下载的包中启动了zookeeper和kafka:http: //mirror.klaus-uwe.me/apache/kafka/2.4.0/kafka_2.13-2.4.0.tgz 然后我尝试了这个: https:// github.com/confluentinc/schema-registry

1.在一个命令提示符中,我在更改 \config\zookeeper.properties 中的文件夹后启动 zookeeper - 行:

dataDir=C:/KafkaConfl/zookeeper-data(我创建的文件夹)

2.还更改了 config\server.properties - 行中的 kafka 服务器的配置:

- log.dirs=c:\KafkaConfl\kafka-logs

  1. 在一个 cmd 提示符下启动 zookeeper:

    .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties

  2. 等待并在另一个 cmd 提示符下启动 kafka 服务器:

    .\bin\windows\kafka-server-start.bat .\config\server.properties

  3. 尝试使用架构注册表:

    .\bin\windows\schema-registry-start.bat C:\kafkaconfl\etc\schema-registry.properties

错误:无法找到或加载主类 io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain 原因:java.lang.ClassNotFoundException:io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain 任何有 Kafka / Windows 经验的人都可以提供帮助,请?

标签: apache-kafkaconfluent-schema-registry

解决方案


推荐阅读