发送数据后,我正在Maven Spring Boot
的{{1}} + Kafka
应用程序中尝试相同的实现,但遇到了Producer
,但提到了错误,我得到了错误:
Azure Matrix
对于消费者而言,在构建新版本时,我遇到了以下提到的错误:
2019-07-04 12:27:31.729 INFO 92607 --- [nio-8050-exec-2] c.g.k.service.KafkaPublisherService : sending message='t'
2019-07-04 12:28:31.730 ERROR 92607 --- [nio-8050-exec-2] o.s.k.support.LoggingProducerListener : Exception thrown when sending a message with key='null' and payload='Hi' to topic testhub:
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
kafka: 引导服务器:myeventhubname.servicebus.windows.net:9093 客户编号:kafkaconsumer 特性: sasl.jaas.config:org.apache.kafka.common.security.plain.PlainLoginModule必需username =“ $ ConnectionString” password =“ myeventhubname密钥” sasl。机制:普通 security.protocol:SASL_SSL 消费者: 组ID:testhubconsumer 特性: spring.json: use.type.headers:假 #value.default.type:com.protonforest.kafkademo.consumer.ConsumerMessage 话题: 订阅者:testhub
kafka: 引导服务器:myeventhubname.servicebus.windows.net:9093 #client-id:kafkapublisher 特性: sasl.jaas.config:org.apache.kafka.common.security.plain.PlainLoginModule必需username =“ $ ConnectionString” password =“ myeventhubname key” sasl。机制:普通 security.protocol:SASL_SSL 模板: 默认主题:testhub 生产者: 值序列化器:com.protonforest.kafkademo.publishers.ProducerMessageSerializer