Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the way to submit jobs via console to flink-standalone zookeeper-recovery-mode cluster?

I have a flink cluster configure for zookeeper recovery mode runing on marathon. What's the best practice for submit an application to flink cluster by console?taskmanager log ,jobmanager log and client out

like image 722
lshared Avatar asked Jan 31 '26 14:01

lshared


1 Answers

You basically have to configure the flink-conf.yaml with the same ZooKeeper settings as you have used to start the cluster. Given that your ZooKeeper cluster is reachable under zookeeer.foobar.com:2181 and you've set the Flink cluster id to flinkCluster, then you have to insert the following configuration settings into the flink-conf.yaml:

high-availability: zookeeper
high-availability.cluster-id: flinkCluster
high-availability.zookeeper.quorum: zookeeper.foobar.com:2181

Update

The Flink version 1.2.x contains a bug which requires to set the JobManager's address and port via jobmanager.rpc.address and jobmanager.rpc.port in the flink-conf.yaml. Otherwise the ClusterClient fails with an exception or cannot retrieve the proper NIC with which it can talk to the remote JobManager. The problem is described by FLINK-6629.

like image 123
Till Rohrmann Avatar answered Feb 02 '26 15:02

Till Rohrmann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!