Kubernetes Url上的连接超时异常-http://localhost:8888 &;找不到PropertySource:GET请求时出现I/O错误
当Spring Cloud Dataflow Http源应用程序Pod在kubernetes上启动时,请注意控制台中的以下两条消息Kubernetes Url上的连接超时异常-http://localhost:8888 &;找不到PropertySource:GET请求时出现I/O错误,kubernetes,spring-cloud-stream,spring-cloud-dataflow,Kubernetes,Spring Cloud Stream,Spring Cloud Dataflow,当Spring Cloud Dataflow Http源应用程序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
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)
如果仔细查看,以下消息将作为
警告记录在日志中
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
对于我们发布的所有应用程序、SCDF和运行在K8s上的Skipper服务器,您都会看到这条WARN
消息。这意味着应用程序、SCDF或Skipper没有配置配置服务器
,因此默认为默认的http://localhost:8888
背景:我们在提供的所有应用程序中都提供了config server
依赖项,以帮助您快速入门
如果您不使用配置服务器,那没关系;它不会造成任何伤害-不过没什么好担心的。Hi,@techpro。欢迎来到SO俱乐部。我建议您阅读相关的帮助页面。请-展示您自己尝试过的内容以及重现案例的步骤。简言之:请参阅@Yasen感谢您对这个问题的宝贵意见。这很有帮助。你运行了什么命令?什么环境。任何细节都会有所不同。你能提供更多信息吗?您想连接到群集还是从群集?你也暴露了端点吗?谢谢Sabby。有道理。