Spring Cloud Dataflow 自定义应用程序卡在部署状态 [英] Spring Cloud Dataflow Custom App stuck in Deploying state

查看:34
本文介绍了Spring Cloud Dataflow 自定义应用程序卡在部署状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自定义 Spring Cloud 流处理器应用程序,并将其部署为 Source|Processor|Sink 流中的处理器步骤.一切似乎都运行良好,但我的自定义应用程序在数据流 UI 中显示正在部署".如果这会影响任何事情,我会将它部署为来自 mavenLocal 的 SNAPSHOT.我是否遗漏了什么让 SCDF 知道部署成功?

I created a custom Spring Cloud Stream Processor Application and deployed it as the processor step in a Source|Processor|Sink stream. Everything seems to be working fine, but my custom app shows "deploying" in the dataflow UI. I'm deploying it as a SNAPSHOT from mavenLocal if that affects anything. Am I missing something to let SCDF know the deployment was successful?

推荐答案

在这种情况下,通常的罪魁祸首是 Boot 的执行器端点在运行时不可用.

The usual culprit, in this case, is the unavailability of Boot's actuator endpoints at runtime.

更具体地说,这可能是由于 SCDF 在运行时无法访问 Spring Boot 的 /health/info 端点.在 Spring Cloud Stream v2.0 及更高版本中,您必须向 Spring Cloud Stream 应用程序显式添加actuator"和web"依赖项;从框架的角度来看,它们是可选的.

More specifically, it is likely due to Spring Boot's /health and /info endpoints not accessible by SCDF at runtime. In Spring Cloud Stream v2.0 and above, you'd have to explicitly add "actuator" and "web" dependencies to a Spring Cloud Stream application; they are optional from the framework perspective.

查看更多详情此处.

将这些依赖项打包在类路径中并重新部署流后,您应该能够看到状态为 Deployed.

With those dependencies packed in the classpath and upon the redeployment of the stream, you should be able to see the status as Deployed.

这篇关于Spring Cloud Dataflow 自定义应用程序卡在部署状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆