title: Hadoop HDFS: How to set hostname:9000 instead of localhost:9000
body: <p>How can I set the IP address that Hadoop HDFS should listen on? Currently, when I run <code>netstat</code> I see its on <code>127.0.0.1:9000</code>. This makes access HDFS impossible from another node in the cluster. I get <code>connection refused error</code> when running application.</p>
  
  <p>I want it to appear as <code>my-machine-name:9000</code> instead of <code>127.0.0.1:9000</code>. My <code>core-site.xml</code> file is </p>
  
  <pre><code>&lt;property&gt;
        &lt;name&gt;fs.defaultFS&lt;/name&gt;
        &lt;value&gt;my-machine-name:9000/&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>