首页 > 解决方案 > 组合任务在 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

我按照这里提到的步骤:https ://dataflow.spring.io/docs/2.3.x/feature-guides/batch/composed-task/#registering-composed-task-runner

我只从 PCF 中托管的 SCDF 服务器收到此错误。我能够在我的本地 scdf 服务器中执行组合任务。

这是我正在尝试的 DSL timelabel1: timestamp && timelabel2: timestamp

标签: spring-cloud-dataflow

解决方案


我可以通过在启动任务时传递以下参数来解决这个问题

--arguments "--dataflow-server-uri=https:<data-flow-serrver-url>"


推荐阅读