hadoop3.1在文件格式化报错
场景:
在CentOS 6.8下安装hadoop3.1时,在格式化文件那一步报错,报错如下:
# ./bin/hdfs namenode -format
WARNING: /opt/hadoop311/logs does not exist. Creating.
2019-02-06 18:03:33,226 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = note01/127.0.0.1
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 3.1.1
2019-02-06 18:03:34,087 ERROR conf.Configuration: error parsing conf hdfs-site.xml
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </configuratiot>; expected </configuration>.
at [row,col,system-id]: [28,15,"file:/opt/hadoop311/etc/hadoop/hdfs-site.xml"]
at com.ctc.wstx.sr.Stream