After formatting my hdfs, I get the following errors:
2015-05-28 21:41:57,544 WARN org.apache.hadoop.hdfs.server.common.Storage: java.io.IOException: Incompa
The same problem happened to me. I deleted the contents of data directory and then ran hdfs datanode. This created the VERSION and other files inside the datanode directory. This solved my problem.