下载合流开源3.3之后,在命令行进行一个简单的实验:
confluent start -它将显示所有服务而不会出现任何明显的错误:
confluent-3.3.0% confluent start
Starting zookeeper
zookeeper is [UP]
Starting kafka
kafka is [UP]
Starting schema-registry
schema-registry is [UP]
Starting kafka-rest
kafka-rest is [UP]
Starting connect
connect is [UP]向avro控制台生成器发送一条消息,并查看到localhost的连接错误:8081,默认模式-注册表端口:
confluent-3.3.0% bin/kafka-avro-console-producer --broker-list localhost:9092 --topic test --property value.schema='{"type":"record","name":"myrecord","fields":[{"name":"f1","type":"string"}]}'
{"f1": "value1"}
[2018-06-28 12:22:47,827] ERROR Failed to send HTTP request to endpoint: http://localhost:8081/subjects/test-value/versions (io.confluent.kafka.schemaregistry.client.rest.RestService:156)
java.net.ConnectException: Connection refused上面的内容来自汇流平台docs https://docs.confluent.io/3.3.0/quickstart.html。任何关于成功连接到模式注册表所需的其他配置的想法都值得赞赏。
发布于 2018-06-29 03:29:02
贴出对我有用的东西,就像我看到许多其他类似问题的未回答问题一样--重新启动我的笔记本电脑是很遗憾的。
在mac上,您可以使用网络实用程序->端口扫描来验证默认的schema-registry端口8081上是否有任何东西正在运行。
它以sunproxyadmin的形式出现。
在重启之前,该端口没有显示任何内容,尽管confluent status有时报告模式-注册表为“up”。
https://stackoverflow.com/questions/51092145
复制相似问题