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

由hadoop2.7.1切换到hadoop3.1.1之后,加载jar包不全导致编译出现问题     原因是: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
相关文章
相关标签/搜索