I've successfully installed HADOOP for one user. When I installed HADOOP for another user, the data node is missing. The log file for data node shows:
2014-11-21 06:28:30,774 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists! 2014-11-21 06:28:32,161 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /home/test/work/hadoopdata/dfs/data: namenode namespaceID = 1488453240; datanode namespaceID = 2050828596
One solution is to clear the "dfs" directory and then run the HADOOP again. But how to solve this problem with another method, i.e. resolving the namespace ID. I searched in the net but did not found any clear solution for this.
My OS is Ubuntu 14.04.