我正在关注本教程 - http://www.ercoppa.org/Linux-Install-Hadoop-220-on-Ubuntu-Linux-1304-Single-Node-Cluster.htm
当我启动服务时。 Namenode无法启动。以下是我的namenode日志。我尝试在谷歌上搜索错误,但找不到解决方案。我尝试删除目录中的namenode,甚至删除整个namenode-data-directory并格式化namenode。但没有运气。我很感激你的帮助。
org.apache.hadoop.hdfs.server.common.Storage: Lock on /home/username/hadoop/data/namenode/in_use.lock acquired by nodename 25382@username-HP-ENVY-15-Notebook-PC
org.mortbay.log: Stopped SelectChannelConnector@0.0.0.0:50070
org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Stopping NameNode metrics system...
org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
java.io.IOException: NameNode is not formatted.
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:210)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:787)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:568)
at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:443)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:491)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:684)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:669)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
org.apache.hadoop.util.ExitUtil: Exiting with status 1
INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:
答案 0 :(得分:0)
&#34;格式HDFS&#34;的输出是什么?步?异常消息很明确:
java.io.IOException: NameNode is not formatted.