我成功注册了三个名为appSink,appSource和appProcessor的应用程序,如下所示
dataflow:>app register --name appSource --type source --uri maven://com.example:source:jar:0.0.1-SNAPSHOT --force
Successfully registered application 'source:appSource'
dataflow:>app register --name appProcessor --type processor --uri maven://com.example:processor:jar:0.0.1-SNAPSHOT --force
Successfully registered application 'processor:appProcessor'
dataflow:>app register --name appSink --type sink --uri maven://com.example:sink:jar:0.0.1-SNAPSHOT --force
Successfully registered application 'sink:appSink'
dataflow:>app list
╔══════════╤═════════════╤════════╤════╗
║ source │ processor │ sink │task║
╠══════════╪═════════════╪════════╪════╣
║appSource│appProcessor│appSink│ ║
╚══════════╧═════════════╧════════╧════╝
然后,我按如下方式创建并部署了一个流:
dataflow:>stream create --name myStream --definition 'appSource | appProcessor | appSink’
Created new stream 'myStream'
dataflow:>stream deploy --name myStream
我收到了消息
Deployment request has been sent for stream 'myStream'
在溪流列表中,我看到了
║myStream1 │source-app | processor-app | sink-app│The stream is being deployed. ║
部署似乎永远不会完成。数据流服务器日志只是停留在此
o.s.c.d.spi.local.LocalAppDeployer : Deploying app with deploymentId myStream1.source-app instance 0.
为什么我的流没有成功部署?
答案 0 :(得分:0)
您是否看到本地运行的任何java进程(对应于正在部署的应用程序)?
您可以使用doc https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#_remote_debugging
尝试远程调试应用程序部署您还可以尝试使用
继承应用程序日志记录https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#_log_redirect
答案 1 :(得分:0)
我看到了同样的问题。我按照您的建议继承了日志记录。用户界面永远不会脱离“部署”状态。日志中没有错误,测试时我的流正在运行。
答案 2 :(得分:-1)
在您的项目中添加Spring Boot执行器依赖项,数据流调用/ health和/ info来查看该应用程序是否已部署。