title: unable to check nodes on hadoop [Connection refused]
body: <p>If I type  <code>http://localhost:50070</code> or  <code>http://localhost:9000</code> to see the nodes,my browser shows me nothing I think it can't connect to the server.
  I tested my hadoop with this command:</p>
  
  <pre><code>hadoop jar hadoop-*test*.jar TestDFSIO -write -nrFiles 10 -fileSize 1000
  </code></pre>
  
  <p>but too didn't work and it tries to connect to the server,this is the output:</p>
  
  <pre><code>12/06/06 17:25:24 INFO mapred.FileInputFormat: nrFiles = 10
  12/06/06 17:25:24 INFO mapred.FileInputFormat: fileSize (MB) = 1000
  12/06/06 17:25:24 INFO mapred.FileInputFormat: bufferSize = 1000000
  12/06/06 17:25:25 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s).
  12/06/06 17:25:26 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s).
  12/06/06 17:25:27 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s).
  12/06/06 17:25:28 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s).
  12/06/06 17:25:29 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s).
  12/06/06 17:25:30 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s).
  12/06/06 17:25:31 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s).
  12/06/06 17:25:32 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s).
  12/06/06 17:25:33 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s).
  12/06/06 17:25:34 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s).
  java.net.ConnectException: Call to localhost/127.0.0.1:9000 failed on connection exception: java.net.ConnectException: Connection refused
  </code></pre>
  
  <p>I changed some files like this:
  in conf/core-site.xml:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;property&gt;
      &lt;name&gt;fs.default.name&lt;/name&gt;
      &lt;value&gt;hdfs://localhost:9000&lt;/value&gt;
    &lt;/property&gt;
  </code></pre>
  
  <p>in conf/hdfs-site.xml:</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;/configuration&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>in conf/mapred-site.xml:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;property&gt;
      &lt;name&gt;mapred.job.tracker&lt;/name&gt;
      &lt;value&gt;localhost:9001&lt;/value&gt;
    &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Thanks for your attention. If I run this command:</p>
  
  <pre><code>cat /etc/hosts
  </code></pre>
  
  <p>I see:</p>
  
  <pre><code>127.0.0.1   localhost
  127.0.1.1   ubuntu.ubuntu-domain    ubuntu
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>and if i run this one:</p>
  
  <pre><code>ps axww | grep hadoop
  </code></pre>
  
  <p>I see this result:</p>
  
  <pre><code>2170 pts/0    S+     0:00 grep --color=auto hadoop
  </code></pre>
  
  <p>but no effect. Have you any idea, how can I solve my problem?</p>