What is version-id mismatch error in hadoop?

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Hadoop What is version-id mismatch error in hadoop?

Viewing 1 reply thread
  • Author
    Posts
    • #4612
      DataFlair TeamDataFlair Team
      Spectator

      while stating hadoop datanode daemon is not running, when I scanned logs it is say that version id mismatch with namenode id. what is the cause of this error and how to resolve it ?

    • #4613
      DataFlair TeamDataFlair Team
      Spectator

      Ideally, we should format the name node only during the installation of Hadoop, because it creates all the necessary files and directories for HDFS and assigns a unique id to namenode. When we start services at that time the same id is assigned to all the datanodes.

      But if we format NameNode again, it deletes all the data stored in the HDFS. Now it assigns a new id to name node, while datanodesare having their old id. This causes version-id mismatch error in Hadoop.

      To resolve this issue, simply delete hdfs base directory (specified in core-site.xml as dfs.tmp.dir) and again format the namenode and start the services.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.