【发布时间】:2020-01-16 09:06:39
【问题描述】:
当 Spring Cloud Dataflow Http-Source 应用程序 Pod 在 kubernetes 上启动时,请注意控制台中的两条消息。
Connect Timeout Exception on Url - http://localhost:8888.
Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/http-source/default": Connection refused (Connection refused); nested exception is java.net.ConnectException
如何解决这个问题?
subscriber to the 'errorChannel' channel
2019-09-15 05:17:26.773 INFO 1 --- [ main] o.s.i.channel.PublishSubscribeChannel : Channel 'application-1.errorChannel' has 1 subscriber(s).
2019-09-15 05:17:26.774 INFO 1 --- [ main] o.s.i.endpoint.EventDrivenConsumer : started _org.springframework.integration.errorLogger
2019-09-15 05:17:27.065 INFO 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2019-09-15 05:17:27.137 INFO 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2019-09-15 05:17:27.141 WARN 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/http-source/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
【问题讨论】:
-
嗨,@techpro。欢迎来到 SO 俱乐部。我建议您阅读How do I ask a good question 和相关帮助页面。请 - 展示您自己尝试过的内容以及重现此案例的步骤。总之:请参考How to Ask and minimal reproducible example
-
@Yasen 感谢您对此问题的宝贵意见。它有帮助。
-
你运行了什么命令?什么环境。任何细节都可以有所作为。
-
您能提供更多信息吗?您要连接 TO 集群还是 FROM 集群?您还公开了任何端点吗?
标签: kubernetes spring-cloud-stream spring-cloud-dataflow