Take the fully qualified HDFS path that looks like this:

    hdfs://namenode-host-name:port/file-path

And transform it into this:

    hdfs://namenode-host-name:web-interface-port/data/file-path

The web-interface-port is 50070 by default.  This will allow you to read HDFS 
files via HTTP.


-----Original Message-----
From: Peeyush Bishnoi [mailto:[EMAIL PROTECTED]
Sent: Thu 5/8/2008 5:04 AM
To: [email protected]
Subject: Re: newbie how to get url paths of files in HDFS
 
I apologize that I misunderstood your question , do you want to get URL
through API or through web interface.

Thanks ,

---
Peeyush
  


On Thu, 2008-05-08 at 16:04 +0530, Peeyush Bishnoi wrote:

> Hello Chaitanya , 
> 
> using getInputpaths() you can do this . See here 
> 
> http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/JobConf.html#getInputPaths()
>  
> 
> ---
> Peeyush
> 
> On Thu, 2008-05-08 at 15:07 +0530, chaitanya krishna wrote:
> 
> > Hi,
> > 
> >   I want to get the "URL" paths of files that are stored in dfs. Is there
> > any way to get it?
> > 
> > 
> > Thank you




Reply via email to