Hello, team! I am deploying my flink python app u...
# troubleshooting
n
Hello, team! I am deploying my flink python app using flink-kubernetes-operator on AWS EKS. I have enabled s3 connector for checkpoint and savepoint, but now my app deployment is keep failing due to
Could not find a file system implementation for scheme 's3'.
I have even added direct aws creds just in case permission issue.. but still same error...
FlinkDeployment
config.
Copy code
flinkConfiguration:
    taskmanager.numberOfTaskSlots: "1"
    state.backend.type: rocksdb # Recommended for production-grade durability and performance
    execution.checkpointing.data-inline-threshold: "20kb" # Optional: Tune based on your data
    execution.checkpointing.incremental: "true" # Use incremental checkpoints for efficient storage
    state.backend.rocksdb.checkpoint.transfer.filesystem: "true"
    execution.checkpointing.savepoint-dir: "s3://xxxxx-flink-test/savepoints/"
    state.checkpoints.dir: "s3://xxxx-flink-test/checkpoints/"
    execution.checkpointing.num-retained: "5" # Number of checkpoints to retain
    execution.checkpointing.interval: "120000" # Checkpoint every 120 seconds
    execution.checkpointing.min-pause: "10000" # Minimum 5 seconds pause between checkpoints
    execution.checkpointing.timeout: "60000" # Timeout after 1 minute
    execution.checkpointing.tolerable-failed-checkpoints: "2" # Allow up to 2 consecutive checkpoint failures
    execution.checkpointing.unaligned.enabled: "true" # Enable unaligned checkpoints for better performance under backpressure
    s3.endpoint: "s3.eu-west-1.amazonaws.com"
    s3.path.style.access: "true" # Required for path-style access
    s3.access-key: "XXXXX"
    s3.secret-key: "XXXXX"
    fs.s3a.endpoint: "s3.eu-west-1.amazonaws.com"
    fs.s3a.path.style.access: "true"
    fs.s3a.multipart.uploads.enabled: "true" # Enable multi-part uploads for large files
    fs.s3a.threads.max: "10" # Parallelize uploads/downloads
    fs.s3a.connection.maximum: "50" # Maximum S3 connections
    fs.s3a.fast.upload: "true" # Use faster upload mechanism
    fs.s3a.access.key: "XXXXX"
    fs.s3a.secret.key: "XXXXX"
    fs.allowed-fallback-filesystems: s3, s3a
    logging.level: DEBUG
t
That error suggests that the s3 filesystem jars are not on the classpath. Have you checked that one of the
flink-s3-fs-*
jars are present in whatever image you are using with the FlinkDeployment?
m
Hi @naman joshi, you need to copy the
flink-s3-fs-*
jar from the
opt
to corresponding directory
plugins/s3-fs-*
. This will definitely resolve this issue. Please refer to this for details.
n
Thank You @Thomas Cooper and @Manojit Roy for your reply on this. but I have already tried exactly the same thing...I am keeping both the plugins into the separate directory... please review my attached DockerFile and let me know if anything I need to modify... Also just a side note, I am running this setup on AWS EKS, not sure if we should install any s3 or EBS plugins to enable any filesystem on pods!
I ssh'd into the pods and I can see the both the jar files under plugins directory... Also adding s3 or EBS plugins doesn't make a difference, I tried adding but still facing the same error...
m
can you not copy the presto jar if it's not mandatory?
also make sure, the task manager is using the updated image
n
can you not copy the presto jar if it's not mandatory?
I found this from the documentations, is there any other way to add these jar files in my docker file?
also make sure, the task manager is using the updated image
Yes, after building the image I am re-deploying the app...
m
> I found this from the documentations, is there any other way to add these jar files in my docker file? You can directly copy it from opt dir directly. as follows:
Copy code
RUN mkdir ./plugins/s3-fs-hadoop && cp ./opt/flink-s3-fs-hadoop-1.20.0.jar ./plugins/s3-fs-hadoop/
There's no need to install from the central. > Yes, after building the image I am re-deploying the app... Please check the plugins dir once the task manager pod is spawned to confirm. Alternatively, You can also check logs emitted by:
org.apache.flink.core.plugin.DefaultPluginManager
it should log something like
"Plugin loader with ID ..."
for each found plugin.
n
Thanks @Manojit Roy, so does that means I should first have the local build copy of both plugins? or I can just download from central and keep it into my bitbucket repo folder then point Dockerfile to copy from there?
m
just have a local copy of hadoop jar.
Thank You @Manojit Roy this works....by keeping jar as local copy and building docker image using this works...I changed a bit how files are getting copy from local to docker image.. but i don't understand why it was not working if i use the central repo link to download directly? even though the jar files are present on the pods directory...
πŸ™Œ 1
m
May be somehow the hadoop jar was not being loaded that you can postmortem later.
n
sure thanks, at least 1 problem resolved... πŸ˜