Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

Problem synchronizing 'bucket' to local directory with Spring Cloud DataFlow Streams

I'm following this Case Study, which is similar to mine where I want to receive thousand of files in a S3 bucket and launch the batch task which will consume them.

But I'm getting:

Problem occurred while synchronizing 'bucket' to local directory; nested exception is org.springframework.messaging.MessagingException: Failed to execute on session; nested exception is com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;

I already consume this bucket using spring-cloud-starter-aws dependency in some apps.

I know the message is pretty clear, but should I have specific permissions in a bucket when I need to sync like this with Spring Cloud DataFlow?

My current Stream config is:

s3 
--spring.cloud.function.definition=s3Supplier,taskLaunchRequestFunction 
--file.consumer.mode=ref 
--s3.common.path-style-access=true 
--s3.supplier.remote-dir=mybucket 
--s3.supplier.local-dir=/scdf/infile 
--cloud.aws.credentials.accessKey=**** 
--cloud.aws.credentials.secretKey=**** 
--cloud.aws.region.static=**** 
--cloud.aws.stack.auto=false 
--task.launch.request.taskName=bill-composed-task 
| 
task-launcher-dataflow 
--spring.cloud.dataflow.client.server-uri=http://localhost:9393

Thanks in advance

question from:https://stackoverflow.com/questions/65646098/problem-synchronizing-bucket-to-local-directory-with-spring-cloud-dataflow-str

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...