Amazon s3 Flink流媒体作业赢得';无法连接到localstack s3

Amazon s3 Flink流媒体作业赢得';无法连接到localstack s3,amazon-s3,apache-flink,flink-streaming,localstack,Amazon S3,Apache Flink,Flink Streaming,Localstack,我正在使用一个名为本地模拟AmazonS3的产品,它作为Flink作业的流文件接收器 在运行日志中,我可以看到Flink忽略Localstack并试图联系AmazonS3 Received error response: org.apache.flink.fs.s3base.shaded.com.amazonaws.services.s3.model.AmazonS3Exception: Service Unavailable Retrying Request: HEAD https://s3

我正在使用一个名为本地模拟AmazonS3的产品,它作为Flink作业的流文件接收器

在运行日志中,我可以看到Flink忽略Localstack并试图联系AmazonS3

Received error response: org.apache.flink.fs.s3base.shaded.com.amazonaws.services.s3.model.AmazonS3Exception: Service Unavailable

Retrying Request: HEAD https://s3.amazonaws.com /testBucket/
在flink-conf.yaml中,我指定了以下配置属性:

s3.impl:org.apache.hadoop.fs.s3a.S3AFileSystem
s3.buffer.dir:./tmp
s3.endpoint:本地主机:4566
s3.path.style.access:true
s3.access-key:***
s3.密钥:***

为什么Flink会忽略s3.endpoint?

您的配置几乎正确,在使用localstack时需要添加
http

s3.endpoint: http://localhost:4566
也许可以尝试使用额外的虚拟秘密作为环境变量:

AWS_ACCESS_KEY_ID=foo
AWS_SECRET_ACCESS_KEY=bar