-Re: Accessing HDFS files from an servlet
Edward Capriolo 2012-04-13, 13:14
Have all the hadoop jars and conf files in your classpath
--or-- construct your own conf and URI programatically
URI i = URI.create("hdfs://192.168.220.200:54310");
FileSystem fs = FileSystem.get(i,conf);
On Fri, Apr 13, 2012 at 7:40 AM, Jessica Seastrom <[EMAIL PROTECTED]>wrote:
> Have you considered using Hoop?
> On Fri, Apr 13, 2012 at 3:46 AM, sushil sontakke <[EMAIL PROTECTED]>wrote:
>> I want to know if there is any way of reading a file from HDFS using a
>> servlet . Suppose I have filename of a valid file situated over HDFS . How
>> do I generate a URL to display that file on a jsp page using some servlet
>> code .
>> Thank You .
> Jessica Seastrom
> Solutions Architect
> Email: [EMAIL PROTECTED]
> Mobile: 443.622.6707