spring-cloud-dataflow - 组合任务在 Spring 云数据流服务器中出现错误
问题描述
当我独立创建任务时,它们工作正常,但是当我将相同的任务添加到组合任务时,它给出以下错误
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataFlowOperations' defined in class path resource [org/springframework/cloud/task/app/composedtaskrunner/DataFlowConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.dataflow.rest.client.DataFlowOperations]: Factory method 'dataFlowOperations' threw exception; nested exception is java.lang.IllegalArgumentException: URI is not absolute
我只从 PCF 中托管的 SCDF 服务器收到此错误。我能够在我的本地 scdf 服务器中执行组合任务。
这是我正在尝试的 DSL
timelabel1: timestamp && timelabel2: timestamp
解决方案
我可以通过在启动任务时传递以下参数来解决这个问题
--arguments "--dataflow-server-uri=https:<data-flow-serrver-url>"
推荐阅读
- android - 打包同一个库的多个 APK 会在 AGP 4.0.1 上仅使用一个动态模块导致运行时错误?
- node.js - AWS 通过 api 网关添加实例
- c - C - 递归在二叉搜索树中不起作用
- reactjs - 如何将嵌套对象保留在同一个减速器中。?
- database - 输入“sudo pkill -f mongod”后无法再运行 mongod 命令启动
- kohana - 如何将 INSTR 与 Kohana ORM 一起使用?
- python - __new__ 的元类抛出错误
- ruby-on-rails - 在自定义生成器中使用 ActiveRecord 参数
- python-3.x - 如何使用户不能使用 Enter 来制作线条,但只有在有输入的情况下?
- python-3.x - 使用 Docker 容器-Django 连接到 postgres