Solution is first stop your namenode using
go to your /usr/local/hadoop
bin/hdfs namenode -format
then delete hdfs and tmp directory from your home
mkdir ~/tmp
mkdir ~/hdfs
chmod 750 ~/hdfs
goto hadoop directory and start hadoop
`sbin/start-dfs.sh`
it will show the datanode