flink异常
Task xxx did not react to cancelling signal in the last 30 seconds, but is stuck in method
两种可能
第一种是程序30秒内没有做出反应导致taskmanager挂掉
解决办法 在flink-conf.yaml中配置task.cancellation.timeout: 0
第二种是任务被阻塞在某个方法里
解决办法看日志找到被阻塞的方法进行解决
解决zookeeper中的org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss问题
修改flink conf下的zoo.cfg文件
804: Could not resolve substitution to a value: ${akka.stream.materializer}
解决:
1 2 3 | <transformer implementation= "org.apache.maven.plugins.shade.resource.AppendingTransformer" > <resource>reference.conf</resource> </transformer> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version> 3.3 </version> <configuration> <source> 1.8 </source> <target> 1.8 </target> </configuration> </plugin> <!--打jar包--> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.allen.capturewebdata.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version> 2.3 </version> <executions> <execution> <phase> package </phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <!--<transformer implementation= "org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" > <mainClass>flink.KafkaDemo1</mainClass> </transformer>--> <transformer implementation= "org.apache.maven.plugins.shade.resource.AppendingTransformer" > <resource>reference.conf</resource> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build> |
2021-07-23 13:32:38,844 ERROR org.apache.flink.runtime.rest.handler.job.JobsOverviewHandler - Unhandled exception.
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka.tcp://flink@ip-hd:43085/user/dispatcher#-1808307521]] after [150000 ms]. Message of type [org.apache.flink.runtime.rpc.messages.RemoteFencedMessage]. A typical reason for `AskTimeoutException` is that the recipient actor didn't send a reply.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!