:white_check_mark: [EDIT] Solution: Set `kubernete...
# troubleshooting
g
✅ [EDIT] Solution: Set
kubernetes.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):
Copy code
---
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!
✅ 1
Full stacktrace
kubernetes.operator.flink.client.timeout: 300 s
<- it solved the problem