Hello, I am currently experiencing an error when t...
# troubleshooting
r
Hello, I am currently experiencing an error when trying to submit a FlinkSessionJob which is being fetched from http:
Copy code
Caused by: org.apache.flink.runtime.rest.handler.RestHandlerException: Jar file /tmp/flink-web-xxx/flink-web-upload/xxx_flink-1.0-SNAPSHOT.jar does not exist
Our setup has 3 Flink Operator pods for HA (version 1.10), as well as 3 JobManager pods for HA. I noticed that most of the time I get this error, however once in a while the job is actually submitted with no problems. Doing some debugging I realised that reducing the number of JobManager replicas to 1 solves the problem. My guess is this happens because somehow the operator submits the job jar file to a JobManager that isn’t the leader, but for now this is just guessing. Anyone ever experienced something similar or is this just some bad configuration?
Relevant Operator configuration:
Copy code
...
replicas: 3
defaultconfiguration:
  ...
  flink-conf.yaml: |+
    kubernetes.operator.leader-election.enabled:true
    kubernetes.operator.leader-election.lease-name:flink-operator-lease
    ...
Relevant JobManager configuration:
Copy code
flinkConfiguration:
  ...
  state.savepoints.dir: file:///flink-data/savepoints
  state.checkpoints.dir: file:///flink-data/checkpoints
  high-availability.type: kubernetes
  high-availability.storageDir: file:///flink-data/ha
  ...
m
Looks like you're using wrong jar id or the jar file is removed/currently doesn't exist.
r
Thanks for the anwser! The jar does exist in our artifactory, I am sure of this because I can download it. Also there are no error messages in the operator itself, only in the JobManager. Also if the jar didn’t exist it wouldn’t sometimes work without changing anything, right? From my impression the problem possibly lies somewhere in the communication between the Operator and the leader JobManager?
t
not sure of the underlying mechanics, but i think having 3 JM pods is intense. we only ever run 1 JM, with the idea that k8s is usually very, very quick to replace a dead JM. what does having 3 get you?
r
In the Operator documentation, they claim that JM HA eliminates the single point of failure and will result in faster recovery times. I do somewhat tend to agree with you; however, having both possibilities and the ability to make an informed decision would be the best of both worlds for us.