搭建高可用hadoop时出错:HA is not enabled for this namenode

搭建高可用hadoop,在格式化namenode时报错:

Exception in thread "main" org.apache.hadoop.hadoopILLegalArgumentException: HA is not enabled for this namenode
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.create(DFSZKFailoverController.java:121)
at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:121)

试了很多种办法,搞了很久还是没弄出来,求同行们救命!!

img

hdfs-site.xml 配置贴出来看看