class org.apache.hadoop.hdfs.web.HftpFileSystem cannot access its superinterface org.apache.hadoop.h

报错:

yarn运行自定义的mapreducer任务时报错

原因:

可能是打包的jar中携带的第三方hadoop的jar包与运行mapreducer的集群中的hadoop环境的jar包发生版本冲突

解决办法:

在IDEA导出jar包之前,将依赖包中所有hadoop-hdfs-***.jar包删除

猜你喜欢

转载自blog.csdn.net/m0_55868614/article/details/121083999
今日推荐