apache-kafka - 在 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
在一个 cmd 提示符下启动 zookeeper:
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
等待并在另一个 cmd 提示符下启动 kafka 服务器:
.\bin\windows\kafka-server-start.bat .\config\server.properties
尝试使用架构注册表:
.\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 经验的人都可以提供帮助,请?
解决方案
推荐阅读
- java - 如何使用 JSP 和 Servlet 编辑页面的 url
- django - JsonResponse 在 Django 视图中返回不可序列化的错误
- c - 如何在循环中正确使用 select()?
- java - Raspberry pi 4 使用 java 控制 GPIO
- c# - 使用 C# 使用 json 路径读取 json 值
- javascript - 如何以编程方式填写 Microsoft Office Forms 表单?
- jsf - 单击命令按钮时,将打开两个具有相同 widgetVar 的对话框
- arrays - F找到直方图中最大的正方形
- c++ - 对象参数的模板类特化
- docker - Docker swarm stack:Traefik with Whoami 返回“404 page not found”