我正在使用Kafka-client
版本的1.0.0和Spring-cloud-stream
版本的2.0.2。现在我想知道Spring-cloud-stream-binder-kafka
版本的版本以将事件流式传输到kafka。
无法创建生产者绑定; 30秒后重试 headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com | headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com | org.springframework.cloud.stream.provisioning.ProvisioningException:置备异常;嵌套的异常是java.util.concurrent.TimeoutException headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopic(KafkaTopicProvisioner.java:259)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:131)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:74)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:149)〜[spring-cloud-stream-2.0.2.RELEASE.jar!/:2.0.2.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:77)〜[spring-cloud-stream-2.0.2.RELEASE.jar!/:2.0.2.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.AbstractBinder.bindProducer(AbstractBinder.java:138)〜[spring-cloud-stream-2.0.2.RELEASE.jar!/:2.0.2.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binding.BindingService.lambda $ rescheduleProducerBinding $ 2(BindingService.java:262)〜[spring-cloud-stream-2.0.2.RELEASE.jar!/:2.0.2.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)〜[spring-context-5.0.7.RELEASE.jar!/:5.0.7.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:515)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.util.concurrent.FutureTask.run(FutureTask.java:264)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:628)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在java.base / java.lang.Thread.run(Thread.java:834)〜[na:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |引起原因:java.util.concurrent.TimeoutException:空 headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.apache.kafka.common.internals.KafkaFutureImpl $ SingleWaiter.await(KafkaFutureImpl.java:108)〜[kafka-clients-1.0.1.jar!/:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:225)〜[kafka-clients-1.0.1.jar!/:na] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicAndPartitions(KafkaTopicProvisioner.java:288)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicIfNecessary(KafkaTopicProvisioner.java:268)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com |在org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopic(KafkaTopicProvisioner.java:252)〜[spring-cloud-stream-binder-kafka-core-2.0.0.RELEASE.jar!/:2.0 .0.RELEASE] headless_api-gateway-service.1.te0u82ql4pkh@node8.docker.com | ...省略了13个常见框架
答案 0 :(得分:0)
有关兼容性列表,请参见Spring for Apache Kafka project page。
当前
但是,正如奥列格(Oleg)在删除的答案中所说,超时很可能是错误的配置(例如SSL不匹配)。打开调试日志记录以查看它是否提供更多信息。