I'm new to this. Where do I find my computer's info to replace this generic XML data?

    <description>DataNode directory</description>

    <description>NameNode URI</description>



In the tutorial you are following, there was a step where you created these folders:

We should create and prepare directories for our data:

mkdir -p ~/hdfs/namenode
mkdir -p ~/hdfs/datanode
mkdir $HADOOP_INSTALL/logs

The folder ~/hdfs/datanode (which is actually /home/hduser/hdfs/datanode) was created for the purpose of holding the Hadoop data, so you should use that as the value under the property dfs.datanode.data.dir.

The fs.defaultFS is the IP address or hostname of your NameNode (the "main" computer) in your Hadoop cluster. You should already know which machine will be acting as your NameNode, so put its IP address or hostname there.

  • Thank you! Seems to be working. Applying to the other nodes. – ayman803 Dec 24 '14 at 21:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.