Hey Flinkers, I just configured a job running via...
# troubleshooting
r
Hey Flinkers, I just configured a job running via the operator to use high-availability via the following configuration in the job:
Copy code
high-availability: org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory
high-availability.storageDir: {{ $storage.baseUri }}/{{ $job }}/ha
However the job is currently stuck in a crash loop (on it’s initial deployment) with the following error:
Copy code
INFO  org.apache.flink.runtime.highavailability.FileSystemJobResultStore [] - Created highly available job result storage directory at s3://operator/my-job/ha/job-result-store/my-job/f16eb088-e7fa-49b6-bbdd-54087b8974ca
...
ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint        [] - Fatal error occurred in the cluster entrypoint.                                                   
java.util.concurrent.CompletionException: org.apache.flink.util.FlinkRuntimeException: Could not retrieve JobResults of globally-terminated jobs from JobResultStore
...
Caused by: java.io.FileNotFoundException: No such file or directory: s3://operator/my-job/ha/job-result-store/my-job/f16eb088-e7fa-49b6-bbdd-54087b8974ca
It doesn’t appear to be able to see the directory that it just created. I’ve confirmed that looking at my storage provider (minio) that the directory exists (and the job itself seems to have created it so access isn’t an issue), however the job is continually crashing. Does something seem misconfigured here? I don’t see too many knobs to turn or adjust. Any ideas?
t
It seems like there's an inconsistency or access issue between your Flink job and the MinIO directory it created for high-availability (HA) storage. To resolve this, check the following: 1. Configuration Consistency: Ensure all configurations are correct and consistent across your cluster. 2. Permissions: Verify the Flink job has necessary permissions to access the MinIO directory. 3. Networking: Make sure there are no networking or DNS issues preventing access to MinIO. 4. MinIO Bucket Policy: Check the MinIO bucket policy to ensure it doesn't restrict access. 5. Flink and MinIO Compatibility: Confirm your Flink version is compatible with your MinIO setup. 6. Debug Logging: Increase logging level for more detailed error insights. 7. S3/MinIO Client Configuration: Double-check the configuration of the S3/MinIO client used by Flink. Review these areas to identify and fix the issue