简体   繁体   中英

Composed task runner failing in spring cloud dataflow kubernetes server

I am running a composed task using the sample batch job.

task create batch-comp --definition "b1: batch && b2: batch"

When I run this in my Kubernetes scdf server I get the following error:

Unsatisfied dependency expressed through field 'taskOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskOperations' 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.TaskOperations]: Factory method 'taskOperations' threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 401 null at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) ~[spring-beans-4.3.12.RELEASE.jar!/:4.3.12.RELEASE]

I am using the composed task runner task app given in the spring cloud documentation.

The issue might be because the composed task runner does not have the dataflow server user and password. As the error is 401, unauthorized error. Any idea how I can pass those ?

如果启用了SCDF平台安全性,请使用以下参数启动组合任务:

task launch --name composed-task --arguments "--dataflow-server-username=username --dataflow-server-password=password"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM