【问题标题】:Failed to connect localhost:8081 in Kafka Schema Registry无法在 Kafka Schema Registry 中连接 localhost:8081
【发布时间】:2019-06-17 14:23:24
【问题描述】:

我已经使用以下命令启动了 zookeeper 和 Kafka:

bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties

当我尝试获取架构注册表兼容性设置(向后、向前、无)时,我运行以下 curl 命令:

curl -X GET http://localhost:8081/config

预期:

{"compatibility":"BACKWARD"}

结果:

curl: (7) Failed to connect to localhost port 8081: Connection refused

我怎样才能知道使用哪个端口?

【问题讨论】:

    标签: apache-kafka confluent-platform confluent-schema-registry


    【解决方案1】:

    您似乎只启动了 Zookeeper 和 Kafka,但没有启动 Schema Registry。

    如果你确实启动了它,并且看到它正在监听端口 8081 上的终端输出,那么 curl 应该可以工作

    设置端口可以参考Schema Registry configuration(或listeners

    【讨论】:

    • 感谢您的帮助,从 confluent.io 启动 schema-registry 解决了我的问题。
    猜你喜欢
    • 2021-10-12
    • 2020-09-07
    • 1970-01-01
    • 2021-03-08
    • 2019-07-21
    • 1970-01-01
    • 2022-12-03
    • 1970-01-01
    • 2020-03-17
    相关资源
    最近更新 更多