Rion Williams
12/20/2023, 3:27 PMENABLE_BUILT_IN_PLUGINS configuration for the podTemplate to bring in Hadoop which I believe would be all that I needed:
podTemplate:
spec:
containers:
- env:
- name: ENABLE_BUILT_IN_PLUGINS
value: flink-s3-fs-hadoop-1.15.4.jar
with the appropriate gs bucket configuration:
spec:
flinkConfiguration:
state.checkpoints.dir: gs://.../flink-jobs/my-job/checkpoints
state.savepoints.dir: gs://.../flink-jobs/my-job/savepoints
I’m targeting the flink:1.15 image as well as v1_15 for the version as well. But I still am getting errors in the logs about the ’gs` scheme not being recognized. Is there another or better way to handle this?Gyula Fóra
12/20/2023, 4:11 PMRion Williams
12/20/2023, 4:11 PMGyula Fóra
12/20/2023, 4:11 PMGyula Fóra
12/20/2023, 4:12 PMRion Williams
12/20/2023, 4:13 PMGyula Fóra
12/20/2023, 4:13 PMRion Williams
12/20/2023, 4:18 PMspec:
podTemplate:
apiVersion: v1
kind: Pod
metadata:
name: pod-template
spec:
containers:
- name: flink-main-container
volumeMounts:
- mountPath: /opt/flink/jars
name: jars
- mountPath: /flink/gcs-creds/
name: gcs-creds
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /flink/gcs-creds/key.json
- name: ENABLE_BUILT_IN_PLUGINS
value: flink-gs-fs-hadoop-1.15.4.jar
volumes:
- name: jars
emptyDir: { }
- name: gcs-creds
emptyDir: { }Gyula Fóra
12/20/2023, 4:20 PMRion Williams
12/21/2023, 4:30 AMorg.apache.flink.fs.shaded.hadoop3.org.apache.hadoop.util.Shell [] - Failed to detect a valid hadoop home directory
java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset.