I know that this question has been asked before,saw the following solution:
<!-- to be modified in hdfs-site.xml-->
<property>
<name>dfs.name.dir</name>
<value>/home/hduser/hadoop/data</value>
</property>
I modified my hdfs-site.xml file, also removed the contents of the temp directory.But still,without formatting the namenode,it dosen't start. Also,should the path of the directory given in the value of the value tag be already existing?
Any suggestions what point am i missing in the above updation?