title: What is the path to directory within Hadoop filesystem?
body: <p>Recently I start learning Hadoop and Mahout. I want to know the path to directory within Hadoop filesystem directory.</p>
  
  <p>In hadoop-1.2.1/conf/core-site.xml, I have specified:</p>
  
  <pre><code>&lt;property&gt;
    &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
    &lt;value&gt;/Users/Li/File/Java/hdfstmp&lt;/value&gt;
    &lt;description&gt;A base for other temporary directories.&lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>In Hadoop filesystem, I have the following directories:</p>
  
  <pre><code>lis-macbook-pro:Java Li$ hadoop fs -ls
  Found 4 items
  drwxr-xr-x   - Li supergroup          0 2013-11-06 17:25 /user/Li/output
  drwxr-xr-x   - Li supergroup          0 2013-11-06 17:24 /user/Li/temp
  drwxr-xr-x   - Li supergroup          0 2013-11-06 14:50 /user/Li/tweets-seq
  -rw-r--r--   1 Li supergroup    1979173 2013-11-05 15:50 /user/Li/u.data
  </code></pre>
  
  <p>Now where is /user/Li/output directory?</p>
  
  <p>I tried:</p>
  
  <pre><code>lis-macbook-pro:usr Li$ cd /user/Li/output
  -bash: cd: /user/Li/output: No such file or directory
  </code></pre>
  
  <p>So I think /user/Li/output is a relative path not an absolute path.</p>
  
  <p>Then I search for it in /Users/Li/File/Java/hdfstmp. There are two folders:</p>
  
  <p>dfs</p>
  
  <p>mapred</p>
  
  <p>But still I cant find /user/Li/output within /Users/Li/File/Java/hdfstmp.</p>