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 ?
security.basic.enabled=true
and/or@SpringBootApplication(exclude = { SecurityAutoConfiguration.class })
– Oleg Zhurakousky