Flink question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Flink question

Mar_zi
I have four physical nodes with docker installed on each of them. I configured Mesos,Flink,Zookeeper,Hadoop and Marathon on docker of each one. I had already had three nodes,one slave and two masters, that I had run Flink on Marathon and its UI had been run without any problems. After that, I changed the cluster,two masters and two slaves. I added this Json file in Marathon, it was ran, but Flink UI was not shown. The error is in following. 

 { 
 "id": "flink", 
 "cmd": "/home/flink-1.7.2/bin/mesos-appmaster.sh -Djobmanager.heap.mb=1024 -Djobmanager.rpc.port=6123 -Drest.port=8081 -Dmesos.resourcemanager.tasks.mem=1024 -Dtaskmanager.heap.mb=1024 -Dtaskmanager.numberOfTaskSlots=2 -Dparallelism.default=2 -Dmesos.resourcemanager.tasks.cpus=1", 
"cpus": 1.0, 
"mem": 1024, 
"instances": 2 

Error: 

Service temporarily unavailable due to an ongoing leader election. Please refresh 

I cleared Zookeeper contents with this commands: 

  /home/zookeeper-3.4.14/bin/zkCleanup.sh /var/lib/zookeeper/data/ -n 10 
  rm -rf /var/lib/zookeeper/data/version-2 
  rm /var/lib/zookeeper/data/zookeeper_server.pid 
Also, I ran this command and delete Flink contents in Zookeeper: 

  /home/zookeeper-3.4.14/bin/zkCli.sh 
  delete /flink/default/leader/.... 
But still Flink UI has problem. 

I have configured Flink high availability like this: 

  high-availability: zookeeper 
  high-availability.storageDir: hdfs:///flink/ha/ 
  high-availability.zookeeper.quorum: 0.0.0.0:2181,10.32.0.3:2181,10.32.0.4:2181,10.32.0.5:2181 
  fs.hdfs.hadoopconf: /opt/hadoop/etc/hadoop 
  fs.hdfs.hdfssite: /opt/hadoop/etc/hadoop/hdfs-site.xml 
  recovery.zookeeper.path.mesos-workers: /mesos-workers 
  env.java.home: /opt/java 
  mesos.master: 10.32.0.2:5050,10.32.0.3:5050 
Because I used Mesos cluster, I did not change any thing in flink-conf.yaml. 

Would you please guide me how to solve the problem? 

Many thanks.