title: When is hdfs-site.xml loaded by hadoop?
body: <p>I have hive and hadoop installed in my system.</p>
  
  <p>This is my hdfs-site.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="configuration.xsl"?&gt;
  &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;/configuration&gt;
  </code></pre>
  
  <p>If i do bin/start-all.sh and go to my hive and run a select query I get the error  :</p>
  
  <pre><code>The ratio of reported blocks 0.0000 has not reached the threshold 0.9990. Safe mode will be turned off automatically.
  </code></pre>
  
  <p>If I wait for some time and run the hive query again, it works.</p>
  
  <p>I read that the safemode threshold is set using the property: <strong>dfs.namenode.safemode.threshold-pct</strong></p>
  
  <p>I added that property in my hdfs-site.xml</p>
  
  <pre><code>&lt;property&gt;
       &lt;name&gt;dfs.namenode.safemode.threshold-pct&lt;/name&gt;
       &lt;value&gt;0.500f&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Again i started all hadoop nodes, and run the hive query, But i was still getting the same error</p>
  
  <pre><code>The ratio of reported blocks 0.0000 has not reached the threshold 0.9990. Safe mode will 
  </code></pre>
  
  <p>It means that either my xml is wrong, or I have to do something else to actually load the hdfs-site.xml.</p>
  
  <p>Can someone tell me what I am doing wrong?</p>