源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  Class org.apache.hadoop.hdfs.DistributedFileSystem not found

Class org.apache.hadoop.hdfs.DistributedFileSystem not found

分类: 文章 • 2022-10-29 13:14:12

用最新版本的Hadoop遇到的坑!

原文转载自:原文链接

由hadoop2.7.1切换到hadoop3.1.1之后,加载jar包不全导致编译出现问题

Class org.apache.hadoop.hdfs.DistributedFileSystem not found

原因是:Class org.apache.hadoop.hdfs.DistributedFileSystem由原本的hadoop-hdfs.2.7.1.jar中迁移到了hadoop-hdfs-client-3.1.1.jar  

解决方法:加载hadoop-hdfs-client-3.1.1.jar

我用的是Hadoop3.1.2

Class org.apache.hadoop.hdfs.DistributedFileSystem not found

运行成功截图:

Class org.apache.hadoop.hdfs.DistributedFileSystem not found

感谢大佬文章!

相关推荐

  • 慕课网电商项目中出现Cause: org.apache.ibatis.builder.BuilderException: Error resolving class
  • Idea报错Could not autowire. No beans of 'XXXXMapper' type found
  • SpringBoot 启动 No supported DataSource type found。
  • springboot 创建多数据源invalid bound statement (not found)
  • indentifier not found,不常见的错误来源,问题已解决。
  • 【Flutter】FlutterEasyLoading导致No MediaQuery widget found.
  • java class修改
  • Class文件中的常量池详解(下)
  • AS开发 default activity not found 无法运行
  • vue . class 多个样式名 配置 ,用数组。 且样式名可以用变量 setTimeout()
  • 常见的6种数据分析图表,告诉你如何更好地分析它们
  • 常见的大数据分析方法有哪些
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号