查看jobmanager日志:standalonesession-0-master.log

2020-05-16 21:46:53,511 WARN  akka.remote.ReliableDeliverySupervisor                        - Association with remote system [akka.tcp://flink-metrics@master:3821] has failed, address is now gated for [50] ms. Reason: [Disassociated]
2020-05-16 21:46:53,511 WARN  akka.remote.ReliableDeliverySupervisor                        - Association with remote system [akka.tcp://flink@master:6123] has failed, address is now gated for [50] ms. Reason: [Disassociated]
2020-05-16 21:47:36,620 INFO  org.apache.flink.runtime.taskexecutor.TaskExecutor            - The heartbeat of JobManager with id bc6c72e5dded7b29a59ecc5417a12aee timed out.
2020-05-16 21:47:36,620 INFO  org.apache.flink.runtime.taskexecutor.TaskExecutor            - Close JobManager connection for job 53a1798d17013773e5622cc42c9bb39b.
2020-05-16 21:47:36,621 INFO  org.apache.flink.runtime.taskmanager.Task                     - Attempting to fail task externally Source: Custom Source -> Map (1/2) (2dad626977317551ef95c85e3f44cc3a).
2020-05-16 21:47:36,621 INFO  org.apache.flink.runtime.taskmanager.Task                     - Source: Custom Source -> Map (1/2) (2dad626977317551ef95c85e3f44cc3a) switched from RUNNING to FAILED.
org.apache.flink.util.FlinkException: JobManager responsible for 53a1798d17013773e5622cc42c9bb39b lost the leadership.at org.apache.flink.runtime.taskexecutor.TaskExecutor.closeJobManagerConnection(TaskExecutor.java:1272)at org.apache.flink.runtime.taskexecutor.TaskExecutor.access$1200(TaskExecutor.java:154)at org.apache.flink.runtime.taskexecutor.TaskExecutor$JobManagerHeartbeatListener.notifyHeartbeatTimeout(TaskExecutor.java:1791)at org.apache.flink.runtime.heartbeat.HeartbeatMonitorImpl.run(HeartbeatMonitorImpl.java:109)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRunAsync(AkkaRpcActor.java:397)at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:190)at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:152)at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)at scala.PartialFunction.applyOrElse(PartialFunction.scala:123)at scala.PartialFunction.applyOrElse$(PartialFunction.scala:122)at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)at akka.actor.Actor.aroundReceive(Actor.scala:517)at akka.actor.Actor.aroundReceive$(Actor.scala:515)at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:225)at akka.actor.ActorCell.receiveMessage(ActorCell.scala:592)at akka.actor.ActorCell.invoke(ActorCell.scala:561)at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)at akka.dispatch.Mailbox.run(Mailbox.scala:225)at akka.dispatch.Mailbox.exec(Mailbox.scala:235)at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.util.concurrent.TimeoutException: The heartbeat of JobManager with id bc6c72e5dded7b29a59ecc5417a12aee timed out.at org.apache.flink.runtime.taskexecutor.TaskExecutor$JobManagerHeartbeatListener.notifyHeartbeatTimeout(TaskExecutor.java:1792)... 26 more

单从日志我没有找到问题原因(因为我太菜)。后来问同事,是因为提交了一个job,这个job中有这么一句:

System.exit(-1);

在异常的时候,执行了这句代码,导致flink所在的JVM虚拟机直接关闭了。

因此,在代码中尽量不要有这种语句。

flink报错:JobManager responsible for xxx lost the leadership相关推荐

  1. 【Flink】JobManager responsible for xx lost the leadership zk变动导致重启

    文章目录 1.概述 2.原因 2.1 内存相关 1.概述 Flink程序报错 org.apache.flink.util.FlinkException: JobManager responsible ...

  2. mitmdump 脚本使用python第三方包方法(报错:in script xxx.py: No module named ‘xxx‘)

    本文仅供学习交流使用,如侵立删! mitmdump -s 调用py脚本时 加载python第三方包会报错 报错:in script xxx.py: No module named 'xxx' 解决方法 ...

  3. Android Studio运行报错:无法访问XXX......请删除该文件或确保该文件位于正确的类路径子目录中

    今天运行一个项目发现运行不起来了,报错 错误: 无法访问XXX 错误的类文件: C:\Users\xxx\.gradle\caches\transforms-2\files-2.1\xxx\xxx(x ...

  4. 【Flink】Flink 报错 Writing records to streamload failed

    1.概述 flink报错 这个问题是 FLink是高频写入doris导致的

  5. [debug] 命令行窗口运行.py文件,报错No module named XXX

    问题描述: 在PyCharm中运行.py文件正常,在命令行运行.py文件报错"No module named XXX" 原因分析 说到底是搜索路径的问题. PyCharm中运行的时 ...

  6. flink报错:The types of the interface org.apache.flink.util.OutputTag could not be inferred.

    测试flink报错如下: The types of the interface org.apache.flink.util.OutputTag could not be inferred. Suppo ...

  7. Zipalign 报错 Unable to open ‘xxx.apk’ as zip archive

    Zipalign 报错 Unable to open 'xxx.apk' as zip archive Zipalign 报错 Unable to open 'xxx.apk' as zip arch ...

  8. 报错Field Mapper in xxx.xxxServiceImpl required a bean of type ‘dao.xxxMapper‘ that could not be found

    报错Field Mapper in xxx.xxxServiceImpl required a bean of type 'dao.xxxMapper' that could not be found ...

  9. QT报错cannot find -lxxx(xxx为被调模型)和undefined reference to’_imp__ZN11/14xxx(xxx为自己定义)

    关于解决QT报错cannot find -lxxx(xxx为被调模型)和undefined reference to'_imp__ZN11/14xxx(xxx同上)的一种方法 前情提要 我的项目分为计 ...

最新文章

  1. 一次搞定:分布式缓存 Redis 集群搭建!
  2. java引用类型和值类型_[Java教程]JavaScript中值类型和引用类型的区别
  3. 2.1.2 Dropout正则化以及其他正则化
  4. python项目NoReverseMatch: Reverse for ‘topic‘ with arguments ‘(‘‘,)‘ not found解决方法
  5. numpy输出到屏幕时有逗号和没逗号的原因
  6. 在word中给公式添加序号
  7. Java——线程的四种不同形式
  8. 【蓝桥杯】BASIC-8 回文数(2020-06-08)
  9. 定义加密函数程序python_一个python自定义的加密解密函数
  10. php开发工具 debug,php开发性能调试工具xdebug
  11. dijkstra算法PHP,单源最短路径(dijkstra算法)php实现
  12. 精通Android自定义View(十七)自定义圆形鸟巢加载转圈效果
  13. DPDK 网卡绑定和解绑
  14. 第二阶段个人工作总结03
  15. sas编程技术教程 人大经济论坛sas培训
  16. 激光共聚焦显微镜原理
  17. php 上传图片返回预览,图片上传前的预览(PHP)
  18. 三星复印机载体初始化步骤_三星复印机的使用方法
  19. 程序员专用的抢票小助手,再也不用担心抢不到车票了。
  20. java gef_GEF开发入门要点(个人经验)

热门文章

  1. 学习雷锋精神践行新时代志愿活动
  2. C#基于Emgucv编写的图像识别软件,内包含自己编辑控件库,优化识别效率比传统匹配方法要快
  3. CI持续集成系统环境---部署Jenkins完整记录
  4. Webpack面试题超全面【吐血整理】
  5. Python——操作excel
  6. (随机微分方程)SDE模拟股价变化
  7. 海奥华预言--第五章 学会在另一个星球上生活
  8. 弘辽科技:直通车推广计划能删除吗?删除会影响店铺宝贝权重吗?
  9. SUSE Linux--zypper程序包管理(二)
  10. STM32F40实现 按键密码锁、按键控制LED 、串口选择菜单 、串口控制LED开关 、串口控制蜂鸣器开关及响度 、串口控制蜂鸣器播放音乐 、按键控制LED的亮度