spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

Task running in k8s scdf failed to configure the DataSource

Open jianfengyuan opened this issue 3 years ago • 5 comments

task console log scdf arguements it works in local scdf, but failed in k8s.

jianfengyuan avatar Nov 04 '21 10:11 jianfengyuan

Hello. I was unable to reproduce the issue you specified using a fresh Spring Cloud Task application created from start.spring.io and launching the application from SCDF to the K8's platform.
Can you provide the following: 1: Version of SCDF that you are using 2: A sample application repository on github that replicates the behavior .

Thanks

cppwfs avatar Nov 04 '21 15:11 cppwfs

Hi.

  1. The version of SCDF is 2.8.3 and my MySQL database(5.7) is running on aws

  2. The spring cloud task demo(timestamp) imported from dockerhub is work, but when I downloaded the source code and build it without h2 dependency, it goes failed.

  3. If I build the task with h2 dependency, the Application can run, but the SCDF can not track any task info, like start time, end time or exit code etc.

Could you have any strategied to help me to debug it?

Thank.

jianfengyuan avatar Nov 05 '21 00:11 jianfengyuan

What repository are you obtaining the timestamp sample?

cppwfs avatar Nov 05 '21 13:11 cppwfs

Yes. I have used dockerfile to build the image. Could it be a problem? Here is the dockerfile. 3078608F-CE04-46FE-9BDB-C684AA9FF738

jianfengyuan avatar Nov 05 '21 13:11 jianfengyuan

Try the timestamp sample from the Spring Cloud Task project located here: https://github.com/spring-cloud/spring-cloud-task/tree/main/spring-cloud-task-samples/timestamp

#Build the app
  mvn clean install 
#Build the docker container
  mvn spring-boot:build-image

cppwfs avatar Nov 05 '21 14:11 cppwfs

Closing for lack of feedback. If there are any additional problems, please create a new issue.

markpollack avatar Sep 22 '22 12:09 markpollack