Hey Joshua, Can you first validate if the docker image you've built is valid by running it locally on your machine?
I would recommend putting the s3 filesystem files into the plugins [1] directory to avoid classloading issues. Also, you don't need to build custom images if you want to use build-in plugins [2] [1] https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/deployment/filesystems/plugins/ [2] https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/deployment/resource-providers/native_kubernetes/#using-plugins On Wed, Aug 4, 2021 at 3:06 PM Joshua Fan <joshuafat...@gmail.com> wrote: > Hi All > I want to build a custom flink image to run on k8s, below is my Dockerfile > content: > >> FROM apache/flink:1.13.1-scala_2.11 >> ADD ./flink-s3-fs-hadoop-1.13.1.jar /opt/flink/lib >> ADD ./flink-s3-fs-presto-1.13.1.jar /opt/flink/lib >> > I just put the s3 fs dependency to the {flink home}/lib, and then I build > the image and push it to the repo. > > When I submit the flink session from the custom image, a error will be > reported like "exec /docker-entrypoint.sh failed: Exec format error". > > I googled a lot, but it seems no useful information. > > Thanks for your help. > > Yours sincerely > Joshua >