Grzegorz Kołakowski
05/05/2024, 10:37 AMkubernetes.operator.flink.client.timeout: 300 s
Hey! Is it possible to run PyFlink job as a FlinkSessionJob using flink-kubernetes-operator? In my case it fails due to org.apache.flink.client.python.PythonDriver Caused by: java.nio.file.NoSuchFileException: /tmp/flink-web-26f9a934-6939-4d08-8dfa-59a4d0a0e303/flink-web-upload/6e76facf-c3a2-4f2b-976c-1de61b9e267b_flink-python-1.19.0.jar
I was not able to find any examples. For instance, https://github.com/apache/flink-kubernetes-operator/tree/main/examples shows only how to run a session job or a python job, but not how to start python a session job :)
This is my configuration (removed some parts to make it shorter):
---
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
name: session-cluster
namespace: flink-jobs
spec:
image: ...
serviceAccount: session-cluster
flinkVersion: v1_19
jobManager:
replicas: 1
flinkConfiguration: ...
---
apiVersion: flink.apache.org/v1beta1
kind: FlinkSessionJob
metadata:
name: flink-job
namespace: flink-jobs
spec:
deploymentName: session-cluster
job:
jarURI: https://repo1.maven.org/maven2/org/apache/flink/flink-python/1.19.0/flink-python-1.19.0.jar
parallelism: 1
entryClass: org.apache.flink.client.python.PythonDriver
args:
- -py
- /opt/flink-job.py
state: running
upgradeMode: savepoint
Any suggestions what I'm doing wrong? Thanks!Grzegorz Kołakowski
05/05/2024, 10:38 AMGrzegorz Kołakowski
05/06/2024, 12:35 PMkubernetes.operator.flink.client.timeout: 300 s <- it solved the problem