1. 程式人生 > >執行格式化bin/hdfs namenode -format 報錯

執行格式化bin/hdfs namenode -format 報錯

bsp orm nbsp 問題 number ati cau system 並保存

報錯: Caused by: org.xml.sax.SAXParseException; systemId: file:/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/hdfs-site.xml; lineNumber: 25; columnNumber: 1; XML document structures must start and end within the same entity. 原因:/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/hdfs-site.xml 這個文件有問題 技術分享圖片 這是xml文件的內容 註意18行和19行 有兩個<configuration>,把其中一個刪除並保存就可以了

執行格式化bin/hdfs namenode -format 報錯