在core-site.xml增加临时目录配置
hadoop.tmp.dir
/home/hadoop/tmp
A base for other temporary directories.
关闭hadoop ,重新执行hadoop namenode -format
出现如下日志就表明OK了:
14/12/22 09:19:22 INFO common.Storage: Storage directory /home/hadoop/tmp/dfs/name has been successfully for