問題1:Couldn’t create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverPro文章來源:http://www.zghlxwxcb.cn/news/detail-560980.html
- hadoop處于ha高可用模式了
需要將高可用環(huán)境下的hdfs-site.xml文件復制到idea的resource下,特別是其中的
<property>
<name>dfs.client.failover.proxy.provider.mycluster</name>
<value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
</property>
問題2:Class org.apache.hadoop.hdfs.DistributedFileSystem not found文章來源地址http://www.zghlxwxcb.cn/news/detail-560980.html
- idea中需要加入hadoop-client的依賴,尤其是3版本以后的hadoop
(區(qū)別比如2版本的hadoop的DistributedFileSystem包在hadoop-hdfs依賴里面,而3版本的依賴在hadoop-client里面)
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>3.1.3</version>
</dependency>
到了這里,關于Couldn‘t create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverPro的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!