Re: Accessing HDFS files from an servlet

2012-04-15 Thread sushil sontakke
i am getting this error on running that jsp as servlet Apr 15, 2012 2:34:07 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.22. Apr 15, 2012 2:34:07 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6

Re: Accessing HDFS files from an servlet

2012-04-13 Thread Edward Capriolo
http://www.edwardcapriolo.com/wiki/en/Tomcat_Hadoop 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, Jessic

Re: Accessing HDFS files from an servlet

2012-04-13 Thread sushil sontakke
Sorry but i don't want to use hoop

Re: Accessing HDFS files from an servlet

2012-04-13 Thread Jessica Seastrom
Have you considered using Hoop? http://www.cloudera.com/blog/2011/07/hoop-hadoop-hdfs-over-http/ On Fri, Apr 13, 2012 at 3:46 AM, sushil sontakke 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

Accessing HDFS files from an servlet

2012-04-13 Thread sushil sontakke
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 .