[Email protected] hadoop-0.20.203.0]$ bin/hadoop namenode-format12/02/20 14:05:17 INFO namenode. Namenode:startup_msg:re-format filesystem In/data0/hadoop-name? (Y or N) Yformat aborted in/data0/hadoop-name12/02/20 14:05:20 INFO Namenode. Namenode:shutdown_msg:
then start Hadoop and discover that http://das0:5007 cannot be displayed.
Remove the/data0/hadoop-name folder as a whole. And then lattice, success!!! [[email protected] hadoop-0.20.203.0]$ bin/hadoop namenode-format12/02/20 14:09:57 INFO namenode. NAMENODE:STARTUP_MSG: 12/02/20 14:09:57 INFO util. GSET:VM type = 64-bit12/02/20 14:09:57 INFO util. gset:2% max memory = 177.77875 mb12/02/20 14:09:57 INFO util. Gset:capacity = 2^24 = 16777216 entries12/02/20 14:09:57 INFO util. gset:recommended=16777216, actual=1677721612/02/20 14:09:57 INFO namenode. FSNAMESYSTEM:FSOWNER=ZHANGPENG612/02/20 14:09:57 INFO Namenode. FSNAMESYSTEM:SUPERGROUP=SUPERGROUP12/02/20 14:09:57 INFO Namenode. FSNAMESYSTEM:ISPERMISSIONENABLED=TRUE12/02/20 14:09:57 INFO Namenode. FSNAMESYSTEM:DFS.BLOCK.INVALIDATE.LIMIT=10012/02/20 14:09:57 INFO Namenode. Fsnamesystem:isaccesstokenenabled=false accesskeyupdateinterval=0 min (s), Accesstokenlifetime=0 min (s) 12/02/20 14:09:57 INFO Namenode. namenode:caching file names occuring more than times 12/02/20 14:09:57 INFO common. Storage:image file of size (SAV)Ed in 0 seconds.12/02/20 14:09:57 INFO Common. Storage:storage Directory/data0/hadoop-name/namenode has been successfully formatted.12/02/20 14:09:57 INFO Namenode. namenode:shutdown_msg:
Summary of issues:before formatting the Namenode, make sure that the directory specified by the Dfs.name.dir parameter does not exist. Hadoop does this to prevent the incorrectly formatting of existing clustersext.: http://blog.sina.com.cn/s/blog_48a45b9501011z7d.html
Format aborted in formatting namenode failure reason