I have tried all the different solutions provided at stackoverflow on this topic, but of no help Asking again with the specific log and the details
Any help is apprecia
run these commands on terminal
$ cd ~
$ mkdir -p mydata/hdfs/namenode
$ mkdir -p mydata/hdfs/datanode
give permission to both directory 755
then,
Add this property in conf/hdfs-site.xml
dfs.namenode.name.dir
file:/home/hduser/mydata/hdfs/namenode
dfs.datanode.data.dir
file:/home/hduser/mydata/hdfs/datanode
if not work ,then
stop-all.sh
start-all.sh