Does anyone have an example using Minio with the F...
# troubleshooting
r
Does anyone have an example using Minio with the Flink Operator for a job (running in a local cluster which relies on Minio for storage as opposed to something like GCS buckets). I’m finding when I attempt to configure my job, it looks like it’s pointing out to AmazonS3 as opposed to using Minio as I’d expect:
Copy code
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
  name: example-job-with-minio
spec:
  ...
  flinkConfiguration:
    ...
    s3.endpoint: ...
    s3.path.style.access: "true"
    s3.access-key: ...
    s3.secret-key: ...
    high-availability: org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory
    high-availability.storageDir: s3://example-job-with-minio/ha
    state.backend: filesystem
    state.checkpoints.dir: s3://example-job-with-minio/checkpoints
    state.savepoints.dir: s3://example-job-with-minio/savepoints
    ...
  podTemplate:
    ...
    spec:
      containers:
        - name: flink-main-container
          ...
          env:
          - name: ENABLE_BUILT_IN_PLUGINS
            value: flink-s3-fs-presto-1.15.4.jar
which yields:
Copy code
java.util.concurrent.CompletionException: com.amazonaws.services.s3.model.AmazonS3Exception: The specified bucket does not exist
Does anyone have a recommendation for wiring this up? I know that similar set-ups using GCS work as expected in non-localized deployments, but something feels like it’s misconfigured.
b
Can you try giving s3a:// as scheme once?
r
Thanks @Bhupendra Yadav, I’ll give that a try shortly and report back.
So that provided a slightly different series of errors:
Copy code
Caused by: java.io.IOException: Could not create FileSystem for highly available storage path (s3a://bucket-name/ha/bucket-name)                                              org.apache.flink.runtime.blob.BlobUtils.createFileSystemBlobStore(BlobUtils.java:102) ~[flink-dist-1.15.4.jar:1.15.4]                                                                        org.apache.flink.runtime.blob.BlobUtils.createBlobStoreFromConfig(BlobUtils.java:86) ~[flink-dist-1.15.4.jar:1.15.4]                                                                         org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory.createHAServices(KubernetesHaServicesFactory.java:53) ~[flink-dist-1.15.4.jar:1.15.4]
org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.createCustomHAServices(HighAvailabilityServicesUtils.java:284) ~[flink-dist-1.15.4.jar:1.15.4]
org.apache.flink.runtime.highavailability.HighAvailabilityServicesUtils.createHighAvailabilityServices(HighAvailabilityServicesUtils.java:143) ~[flink-dist-1.15.4.jar:1.15.4]
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.createHaServices(ClusterEntrypoint.java:427) ~[flink-dist-1.15.4.jar:1.15.4]                                                           org.apache.flink.runtime.entrypoint.ClusterEntrypoint.initializeServices(ClusterEntrypoint.java:376) ~[flink-dist-1.15.4.jar:1.15.4]                                                         
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runCluster(ClusterEntrypoint.java:277) ~[flink-dist-1.15.4.jar:1.15.4]                                                                 
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.lambda$startCluster$1(ClusterEntrypoint.java:227) ~[flink-dist-1.15.4.jar:1.15.4]                                                      
org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28) ~[flink-dist-1.15.4.jar:1.15.4]                                                       
org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:224) ~[flink-dist-1.15.4.jar:1.15.4]                                                               
Caused by: java.io.FileNotFoundException: Bucket bucket-name does not exist
It doesn’t appear that the necessary Flink calls can create the buckets on their own.
Which is fine, I think I have some bits in place to already do that. Is there anything that’s specifically missing though?