title: hdfs-site.xml for adding a new datanode
body: <p>I have installed hadoop 2.7.2 in pseudo-distributed mode(machine-1).I want to add a new datanode to it to make it as a cluster.As, but the problem is both of the machine has differnet disk partitions.</p>
  
  <p>I installed same version hadoop 2.7.2 in new data node(machine-2) and also can ssh with machine-1.After googling many websites, all have common tutorials mentioning that, we have to have the same configurations files inside <code>/etc/hadoop/</code> folder.</p>
  
  <p>With the above said, my existing configurations in machine-1  are:</p>
  
  <p><strong>core-site.xml</strong></p>
  
  <pre><code>    &lt;configuration&gt;
          &lt;property&gt;
                  &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
                  &lt;value&gt;/home1/tmp&lt;/value&gt;
                  &lt;description&gt;A base for other temporary directories
  </code></pre>
  
  <p>
          </p>
  
  <pre><code>    &lt;property&gt;
                  &lt;name&gt;fs.default.name&lt;/name&gt;
                  &lt;value&gt;hdfs://CP000187:9000&lt;/value&gt;
      &lt;/property&gt;
  
      &lt;property&gt;
          &lt;name&gt;hadoop.proxyuser.vasanth.hosts&lt;/name&gt;
          &lt;value&gt;*&lt;/value&gt;
       &lt;/property&gt;
  
      &lt;property&gt;
          &lt;name&gt;hadoop.proxyuser.vasanth.groups&lt;/name&gt;
          &lt;value&gt;*&lt;/value&gt;
      &lt;/property&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>hdfs-site.xml:</strong></p>
  
  <pre><code>&lt;configuration&gt;
       &lt;property&gt;
              &lt;name&gt;dfs.replication&lt;/name&gt;
              &lt;value&gt;1&lt;/value&gt;
       &lt;/property&gt;
       &lt;property&gt;
              &lt;name&gt;dfs.namenode.name.dir&lt;/name&gt;
              &lt;value&gt;file:/home1/hadoop_data/hdfs/namenode&lt;/value&gt;
       &lt;/property&gt;
       &lt;property&gt;
              &lt;name&gt;dfs.datanode.data.dir&lt;/name&gt;
              &lt;value&gt;file:/home1/hadoop_store/hdfs/datanode&lt;/value&gt;
       &lt;/property&gt;
       &lt;property&gt;
              &lt;name&gt;dfs.permissions&lt;/name&gt;
              &lt;value&gt;false&lt;/value&gt;
       &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <blockquote>
    <p><code>/home1</code> is a disk mounted in machine1.</p>
    
    <p>Machine-2 has two disk mounted namely /hdd1 and /hdd2.</p>
  </blockquote>
  
  <p>Now, what should i specify in <code>hdfs-site.xml</code> on the new machine(machine-2) to make use of both hdd1 and hdd2?</p>
  
  <p>should the value of <code>dfs.data.dir</code> of all nodes needs to be same?</p>
  
  <p>Is the <code>dfs.namenode.name.dir</code> property required on <code>hdfs-site.xml</code> on machine2(since it is not a name node)?</p>
  
  <p>My simplified question is it mandatory to replicate the master node configuration files in slave nodes also? Please help me out on this..</p>