0

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?

ssharma
  • 339
  • 1
  • 5
  • 22

1 Answers1

0

without formatting the namenode,it dosen't start Blockquote

As mentioned here, you need to format the namenode.

should the path of the directory given in the value of the value tag be already existing?

Yes. Both the namenode and the datanode directories should be present and most importantly should have proper permissions to HDFS user.

code
  • 2,283
  • 2
  • 19
  • 27