hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Dunning" <tdunn...@veoh.com>
Subject RE: newbie how to get url paths of files in HDFS
Date Thu, 08 May 2008 13:30:44 GMT


 

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:peeyushb@yahoo-inc.com]
Sent: Thu 5/8/2008 5:04 AM
To: core-user@hadoop.apache.org
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





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message