(1)访问 hdfs-site.xml :
vi /erport/ha/hadoop/etc/hadoop/hdfs-site.xml
在 hdfs-site.xml 中增加:
<!-- 开启失败故障自动转移-->
<property>
<name>dfs.ha.automatic-failover.enabled</name>
<value>true</value>
</property>
(2)访问 core-site.xml 文件:
vi /erport/ha/hadoop/etc/hadoop/core-site.xml
在 core-site.xml 文件中增加:
标签:xml,HDFS,ha,hdfs,zookeeper,site,hadoop,core,HA From: https://blog.csdn.net/m0_61475271/article/details/142662554