FAQ
when i restart hdfs ,i encountered the below error,which cause the datanode exits.
if i delete the foldes and files where hadoop use to store information and then restart,its ok.but i cannot do that everytime i restart...
anyone know why and how to avoid? thanks!

2008-05-22 09:29:51,215 INFO org.apache.hadoop.dfs.DataNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG: host = 114.vega/192.168.100.114
STARTUP_MSG: args = []
STARTUP_MSG: version = 0.16.1
STARTUP_MSG: build = http://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.16 -r 635123; compiled by 'hadoopqa' on Sun Mar 9 05:44:19 UTC 2008
************************************************************/
2008-05-22 09:30:10,662 ERROR org.apache.hadoop.dfs.DataNode: java.io.IOException: Incompatible namespaceIDs in /opt/hadoop-0.16.1/filesystem/data: namenode namespaceID = 1486286536; datanode namespaceID = 1825907088
at org.apache.hadoop.dfs.DataStorage.doTransition(DataStorage.java:298)
at org.apache.hadoop.dfs.DataStorage.recoverTransitionRead(DataStorage.java:142)
at org.apache.hadoop.dfs.DataNode.startDataNode(DataNode.java:236)
at org.apache.hadoop.dfs.DataNode.(DataNode.java:2531)
at org.apache.hadoop.dfs.DataNode.run(DataNode.java:2475)
at org.apache.hadoop.dfs.DataNode.createDataNode(DataNode.java:2496)
at org.apache.hadoop.dfs.DataNode.main(DataNode.java:2692)

2008-05-22 09:30:10,663 INFO org.apache.hadoop.dfs.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at 114.vega/192.168.100.114
************************************************************/

Search Discussions

  • Samuel Guo at May 26, 2008 at 3:30 am

    heyongqiang 写道:
    when i restart hdfs ,i encountered the below error,which cause the datanode exits.
    if i delete the foldes and files where hadoop use to store information and then restart,its ok.but i cannot do that everytime i restart...
    anyone know why and how to avoid? thanks!

    2008-05-22 09:29:51,215 INFO org.apache.hadoop.dfs.DataNode: STARTUP_MSG:
    /************************************************************
    STARTUP_MSG: Starting DataNode
    STARTUP_MSG: host = 114.vega/192.168.100.114
    STARTUP_MSG: args = []
    STARTUP_MSG: version = 0.16.1
    STARTUP_MSG: build = http://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.16 -r 635123; compiled by 'hadoopqa' on Sun Mar 9 05:44:19 UTC 2008
    ************************************************************/
    2008-05-22 09:30:10,662 ERROR org.apache.hadoop.dfs.DataNode: java.io.IOException: Incompatible namespaceIDs in /opt/hadoop-0.16.1/filesystem/data:
    Maybe Your Hadoop namespaceID became corrupted.
    Did you upgrade hadoop from an old version to a new version?

    Unfortunately the easiest thing to do reformat the HDFS.
    namenode namespaceID = 1486286536; datanode namespaceID = 1825907088
    at org.apache.hadoop.dfs.DataStorage.doTransition(DataStorage.java:298)
    at org.apache.hadoop.dfs.DataStorage.recoverTransitionRead(DataStorage.java:142)
    at org.apache.hadoop.dfs.DataNode.startDataNode(DataNode.java:236)
    at org.apache.hadoop.dfs.DataNode.<init>(DataNode.java:162)
    at org.apache.hadoop.dfs.DataNode.makeInstance(DataNode.java:2531)
    at org.apache.hadoop.dfs.DataNode.run(DataNode.java:2475)
    at org.apache.hadoop.dfs.DataNode.createDataNode(DataNode.java:2496)
    at org.apache.hadoop.dfs.DataNode.main(DataNode.java:2692)

    2008-05-22 09:30:10,663 INFO org.apache.hadoop.dfs.DataNode: SHUTDOWN_MSG:
    /************************************************************
    SHUTDOWN_MSG: Shutting down DataNode at 114.vega/192.168.100.114
    ************************************************************/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedMay 26, '08 at 3:00a
activeMay 26, '08 at 3:30a
posts2
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Heyongqiang: 1 post Samuel Guo: 1 post

People

Translate

site design / logo © 2022 Grokbase