title: Hadoop on Local FileSystem
body: <p>I'm running Hadoop on a pseudo-distributed. I want to read and write from Local filesystem by Abstracting the HDFS for my job. Am using the <code>file:///</code> parameter.
  I followed <a href="https://stackoverflow.com/questions/3546025/is-it-possible-to-run-hadoop-in-pseudo-distributed-operation-without-hdfs">this link.</a>  </p>
  
  <p>This is the file contents of <code>core-site.xml</code>, </p>
  
  <pre><code>&lt;configuration&gt;
   &lt;property&gt;
    &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
    &lt;value&gt; /home/abimanyu/temp&lt;/value&gt;   
   &lt;/property&gt;
  
   &lt;property&gt;
    &lt;name&gt;fs.default.name&lt;/name&gt;
    &lt;value&gt;hdfs://localhost:54310&lt;/value&gt;
   &lt;/property&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is the file contents of <code>mapred-site.xml</code>, </p>
  
  <pre><code>&lt;configuration&gt;
  
   &lt;property&gt;
    &lt;name&gt;mapred.job.tracker&lt;/name&gt;
    &lt;value&gt;localhost:54311&lt;/value&gt;
   &lt;/property&gt;
  
   &lt;property&gt;
      &lt;name&gt;fs.default.name&lt;/name&gt;
      &lt;value&gt;file:///&lt;/value&gt;
   &lt;/property&gt;
  
   &lt;property&gt;
      &lt;name&gt;mapred.tasktracker.map.tasks.maximum&lt;/name&gt;
      &lt;value&gt;1&lt;/value&gt;
   &lt;/property&gt;
  
   &lt;property&gt;
      &lt;name&gt;mapred.tasktracker.reduce.tasks.maximum&lt;/name&gt;
      &lt;value&gt;1&lt;/value&gt;
   &lt;/property&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is the file contents of <code>hdfs-site.xml</code>, </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;
  </code></pre>
  
  <p>This is the error I get when I try to start the demons(using start-dfs or start-all), </p>
  
  <pre><code>localhost: Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: file:///
  localhost:      at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:212)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:244)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.NameNode.getServiceAddress(NameNode.java:236)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:194)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.&lt;init&gt;(SecondaryNameNode.java:150)
  localhost:      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:676)
  </code></pre>
  
  <p>What is strange to me is that this reading from local file system  works completely fine in <code>hadoop-0.20.2</code> but not in  <code>hadoop-1.2.1</code>. Has anything changed from initial release to the later version ? Let me know how to read from Local File system for a Hadoop JAR.</p>