Hi All, I am migrating to flink 1.19.0 from flink...
# troubleshooting
v
Hi All, I am migrating to flink 1.19.0 from flink 1.17 and I am getting this error
Copy code
Enabling required built-in plugins
Linking flink-s3-fs-presto-1.19.0.jar to plugin directory
Plugin flink-s3-fs-presto-1.19.0.jar does not exist. Exiting.
In the FlinkDeployment I have passed this env variable
Copy code
env:
              - name: ENABLE_BUILT_IN_PLUGINS
                value: flink-s3-fs-presto-1.19.0.jar
This is the base image I am using
Copy code
<http://docker.artifactory.ea.com/flink:1.19.0-java11@sha256:61355051b493c0b2784ae5755608798e7c54d9db0f8467e9e3f183e3a48e617a|docker.artifactory.ea.com/flink:1.19.0-java11@sha256:61355051b493c0b2784ae5755608798e7c54d9db0f8467e9e3f183e3a48e617a>
I verified that the flink-s3-fs-presto-1.19.0.jar was there in the plugins dir but now the container is just exiting. Kindly suggest.
d
Enable debugging or trace to get more information about the error.
Check the plugin JAR is located exactly where Flink expects it to be. The plugin directory path might have changed between Flink versions. For Flink 1.19, the default plugin directory is usually under
/opt/flink/plugins
, but this depends on how your Docker image is structured.
v
The container is exiting right after deploying it.
d
Then check permissions …
Check if there are any permission issues preventing Flink from accessing the plugin. The user running the Flink process inside the container needs to have read permissions for the plugin directory and its contents.
The ENABLE_BUILT_IN_PLUGINS environment variable should ideally contain the plugin names without the version or the .jar extension, unless explicitly required otherwise by Flink 1.19 documentation or known changes. Try setting as follows:
Copy code
env:
  - name: ENABLE_BUILT_IN_PLUGINS
    value: flink-s3-fs-presto
Verify this against the official Flink 1.19 documentation or release notes for the correct format.
And check flink-conf.yaml for any needed plugin settings per Flink 1.19
v
Same logs are getting printed even after changing the log levels to either TRACE or DEBUG.
m
@Vipul Jindal I'm getting same issue with flink 1.20.0, did you have to create your own docker image to include the plugin ?