【回顾】flink1.12+作业以per-job模式部署在yarn-cluster的异常,flink日志配置及webui日志输出,重启作业后checkpoint恢复

本文介绍了在将Flink作业部署到YARN集群时遇到的异常,包括由于Hadoop依赖冲突导致的问题,以及如何通过Maven Helper排除相关jar包。此外,还分享了flink pom.xml的日志配置,尽管存在日志警告但不影响输出。最后,讨论了作业重启后如何利用checkpoint恢复状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、flink作业部署在yarn-cluster遇到的异常

        某年某月某时,flink作业在本地测试运行的7788了,于是打了个jar包,打算部署yarn-cluster运行试试,我遇到过如下但不限于的异常:

异常

hadoop.hdfs 冲突

java.lang.IllegalAccessError:

class org.apache.hadoop.hdfs.web.HftpFileSystem

cannot access its superinterface

org.apache.hadoop.hdfs.web.TokenAspect$TokenManagementDelegator

hadoop.comon 冲突

Caused by: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Could not find a file system implementation for scheme 'hdfs'. The scheme is not directly supported by Flink and no Hadoop file system......

hadoop.comon 冲突

Caused by: org.apache.flink.core.fs.UnsupportedFileSystemSchemeException: Cannot support file system for 'hdfs' via Hadoop, because Hadoop is not in the classpath, or some classes are missing from the classpath.

hadoop.auth 冲突

Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(Ljava/lang/String;)V

hadoop-yarn-server-resourcemanager,hadoop-yarn-registry冲突

Caused by: java.lang.ClassCastException: org.apache.hadoop.yarn.proto.YarnServiceProtos$Registe

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值