Huib
10/11/2023, 7:56 PM/opt/flink/lib folder in my Dockerfile, they are picked up just fine. However, when I move plugin jars to the /opt/flink/plugins/<plugin> folder(s), they are not picked up, resulting in errors like: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file system implementation for scheme 's3'. The scheme is directly supported by Flink through the following plugin(s): flink-s3-fs-hadoop, flink-s3-fs-presto.
The weird thing - when I use the same docker image with the kubernetes operator, I can use s3/azure to store the snapshots and HA data, so it seems like there’s nothing wrong with the Dockerfile itself.Huib
10/11/2023, 7:57 PMMartijn Visser
10/11/2023, 8:08 PMMartijn Visser
10/11/2023, 8:09 PMHuib
10/11/2023, 8:11 PMHuib
10/11/2023, 8:13 PMCaused by: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file system implementation for scheme 'wasbs'. The scheme is directly supported by Flink through the following plugin(s): flink-fs-azure-hadoop.Huib
10/11/2023, 8:17 PMdocker run --entrypoint python -t my-pyflink-image path/to/my/py.py for testing - when I deploy I use the CRD. Haven’t tried if that fixes it, yetHuib
10/11/2023, 8:45 PMFLINK_HOME is set, pip still installs flink again, in a different dir (/usr/local/lib/python3.10/dist-packages/pyflink).
Because the FLINK_HOME var is set correctly, the path for lib is picked up, but apparently plugins is taken from the python installation, rather than the global one.
So I guess I have two questions;
1. is there a better way to install pyflink, so it uses the same flink installation?
2. is there a better way to run python jobs (python main.py / pytest) inside docker?Huib
10/11/2023, 10:13 PMdocker run <...> standalone-job --job-classname org.apache.flink.client.python.PythonDriver -py /opt/flink/app/main.py
has similar behaviour. When I add the azure jar as a plugin, I get the following error:Huib
10/11/2023, 10:20 PMorg.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme "file"
Placing it in lib works, and I can write to a csv file in blob).
Writing parquet doesn’t. Placing the jar in plugins/azure-fs-hadoop exits with the most unhelpful Python process exits with code: 1
Placing the jar in lib complains about java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/lib/output/FileOutputFormatMartijn Visser
10/12/2023, 6:14 AMHuib
10/12/2023, 7:15 AMflink-sql-* jars supposed to be fat jars, bundling their dependencies? Is there any documentation on how to get this to work with python?Martijn Visser
10/12/2023, 7:16 AMHuib
10/12/2023, 7:20 AMHuib
10/12/2023, 8:21 AMVaragini Karthik
12/14/2023, 7:23 AMorg.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme "file"Huib
12/14/2023, 7:31 AM