#troubleshooting
Flink Version : 1.19.0
I have a Apache Beam pipeline running using DirectRunner
However when I use FlinkRunner (running in docker using the docker-compose provided )
with the correct args : python launcher.py --runner=FlinkRunner --job_name=person --flink_master=localhost:8081
The Job gets registered in Flink
However Flink throws null pointer on the number of retry configs
My understanding is this is part of links config and should be in config.yml
docker-compose env
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
hidden.execution.retries: 3
restart-strategy.type: none
restart-strategy.failure-rate.delay: 1 s
restart-strategy.failure-rate.failure-rate-interval: 1 min
restart-strategy.failure-rate.max-failures-per-interval: 1
and also in config.yml
restart-strategy:
failure-rate:
delay: 1s
max-failures-per-interval: '1'
failure-rate-interval: 1min
type: none
Stack Trace:
2024-05-02 101943,766 INFO org.apache.flink.runtime.dispatcher.StandaloneDispatcher [] - Job 9dc7f11a72b5046fdda6cac446f0b81c reached terminal state FAILED.
org.apache.flink.runtime.client.JobInitializationException: Could not start the JobMaster.
Caused by: java.lang.NullPointerException
at org.apache.flink.api.common.ExecutionConfig.getNumberOfExecutionRetries(ExecutionConfig.java:510)
at org.apache.flink.api.common.ExecutionConfig.getRestartStrategy(ExecutionConfig.java:483)
at org.apache.flink.runtime.scheduler.DefaultSchedulerFactory.createInstance(DefaultSchedulerFactory.java:103)