0

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

<property>
    <name>dfs.datanode.data.dir</name>
    <value>file:///home/hduser/hdfs/datanode</value>
    <description>DataNode directory</description>
</property>

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://10.0.1.1/</value>
    <description>NameNode URI</description>
</property>

http://www.elcct.com/installing-hadoop-2-3-0-on-ubuntu-13-10/

0

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.