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-ZXvpkYn067l8UrSeD/***@public.gmane.org]
Sent: Thu 5/8/2008 5:04 AM
To: core-user-7ArZoLwFLBtd/SJB6HiN2Ni2O/***@public.gmane.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
Post by Peeyush BishnoiHello 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
Post by chaitanya krishnaHi,
I want to get the "URL" paths of files that are stored in dfs. Is there
any way to get it?
Thank you