Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1736AD7DB for ; Wed, 12 Sep 2012 06:55:39 +0000 (UTC) Received: (qmail 38710 invoked by uid 500); 12 Sep 2012 06:55:32 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 38216 invoked by uid 500); 12 Sep 2012 06:55:26 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 38184 invoked by uid 99); 12 Sep 2012 06:55:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 06:55:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of visioner.sadak@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-ee0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2012 06:55:18 +0000 Received: by eekd41 with SMTP id d41so1105143eek.35 for ; Tue, 11 Sep 2012 23:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ld8imwFp49J8S5tSDU6mseD9rrw4PXP+MEwJezwzBmc=; b=AsQxUpdvnmOKO0ZGZrEAUTG4kJWcIAxPc3MiXgRBIu7D5uRe1l94wGCk5x+iToXAWJ ybFE93AW+KhS4/I3syWnDl6L7x0Rh59HD2DEN/wzDMMSZNYfyYXf5Dp66s5gjd/bn9wo W54THeueC3igHyBT7LLaM4HMqRcF8dRG+oJChXHbC9h+fcuD+wClo9TqdjkzkjuuBE7D r5O701cGV2RiliOMngNgxDktu6m1Qx4HiXOLrovhV/ktznMlAMn442luul6n8ZciD5UI 3nx+NrogmqWX0p9lTySfUGX+q53vxLgeztV1w8wHhRKDJxfqI4qsYd/QmZk3oFD4IR3A WE0w== MIME-Version: 1.0 Received: by 10.14.172.193 with SMTP id t41mr29270876eel.25.1347432898679; Tue, 11 Sep 2012 23:54:58 -0700 (PDT) Received: by 10.14.220.134 with HTTP; Tue, 11 Sep 2012 23:54:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Sep 2012 12:24:58 +0530 Message-ID: Subject: Re: Accessing image files from hadoop to jsp From: Visioner Sadak To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b603ef248d1e304c97bab54 --047d7b603ef248d1e304c97bab54 Content-Type: text/plain; charset=ISO-8859-1 Thanks a ton guys for showing the right direction.... i was so wrong with hftp, will try out web hdfs,is hdfs FUSE mount a good approach by using that i will have to just mount my existing local java uploads in to hdfs but can i access Har files using this or will i have to create a symlink for acessing HAR's... On Wed, Sep 12, 2012 at 8:29 AM, Michael Segel wrote: > Here's one... > Write a Java program which can be accessed on the server side to pull the > picture from HDFS and display it on your JSP. > > > > On Sep 11, 2012, at 3:48 PM, Visioner Sadak > wrote: > > any hints experts atleast if i m on the right track or we cant use hftp at > all coz the browser wont understand it????? > > On Mon, Sep 10, 2012 at 1:58 PM, Visioner Sadak wrote: > >> or shud i use datanode ip for accessing images using hftp >> >> >> >> my datanode is at 50075 >> >> >> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak wrote: >> >>> seems like webhdfs is available on above 1.0. versions,for the time >>> being just to do a POC cant i use hftp in 0.22.0 version >>> i have to just show the img on a jsp sumthing like this,any ideas on how >>> to configure hftp,security and all,fully confused coz if the url is >>> accessible as below any WAR can access it right or we will have to do it >>> frm admin configs... >>> >>> >>> < >>> td> >>> >>> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J wrote: >>> >>>> I'd say yes. Use either WebHDFS (requires client to be able to access >>>> all HDFS nodes) or HttpFS (acts as a gateway if your client can't >>>> access all HDFS nodes) via their REST APIs. >>>> >>>> On Sat, Sep 8, 2012 at 3:48 PM, Visioner Sadak < >>>> visioner.sadak@gmail.com> wrote: >>>> > is webhdfs a viable approach??? >>>> > >>>> > >>>> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak < >>>> visioner.sadak@gmail.com> >>>> > wrote: >>>> >> >>>> >> I have uploaded some images to hdfs hadoop user/combo/ directory >>>> now >>>> >> want to show those images in a jsp i have configured tomcat and >>>> hadoop >>>> >> properly i m able to do uploads any ideas on how to build the >>>> interface to >>>> >> show thes images on to my front end jsp... >>>> >> >>>> >> >>>> > >>>> > >>>> >>>> >>>> >>>> -- >>>> Harsh J >>>> >>> >>> >> > > --047d7b603ef248d1e304c97bab54 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks a ton guys for showing the right direction.... i was so wrong with h= ftp, will try out web hdfs,is hdfs FUSE=A0 mount a good approach by using t= hat i will have to just mount my existing local java uploads in to hdfs but= can i access Har files using this or will i have to create a symlink for a= cessing HAR's...

On Wed, Sep 12, 2012 at 8:29 AM, Michael Segel <= span dir=3D"ltr"><michael_segel@hotmail.com> wrote:
Here's one...=A0=20
Write a Java program which can be accessed on the server side to pull = the picture from HDFS and display it on your JSP.=A0



On Sep 11, 2012, at 3:48 PM, Visioner Sadak <visioner.sadak@gmail.com> wr= ote:

any hints experts atleast if i m on the right tra= ck or we cant use hftp at all coz the browser wont understand it?????
On Mon, Sep 10, 2012 at 1:58 PM, Visioner Sadak = <visioner.sadak@gmail.com> wrote:
or shud i use datanode ip for accessing images using hftp
=A0
=A0
my datanode is at 50075

=A0
On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <= span dir=3D"ltr"><visioner.sadak@gmail.com> wrote:
seems like webhdfs is available on above 1.0. versions,for the time be= ing just to do a POC cant i use hftp in 0.22.0 version
i have to just show the img on a jsp sumthing like this,any ideas on h= ow to configure hftp,security and all,fully confused coz if the url is acce= ssible as below any WAR can access it right or we will have to do it frm ad= min configs...
=A0

<

td><img = src =3D"hftp://localhost:50070/Comb/java1.jpg&qu= ot;/></td>

On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <harsh= @cloudera.com> wrote:
I'd say yes. Use either WebHDFS (= requires client to be able to access
all HDFS nodes) or HttpFS (acts as = a gateway if your client can't
access all HDFS nodes) via their REST APIs.

On Sat, Sep 8, 2012 at 3:48 PM, Visioner Sadak <visioner.sadak@gmail.com= > wrote:
> is webhdfs a viable approach???
>
>
>= On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <visioner.sadak@gmail.com>
> wrote:
>>
>> I have uploaded some images to hdfs =A0= hadoop =A0user/combo/ =A0directory now
>> want to show those imag= es in a jsp i have configured tomcat and hadoop
>> properly i m ab= le to do uploads any ideas on =A0how to build the interface to
>> show thes images on to my front end jsp...
>>
>>=
>
>



-= -
Harsh J




<= /div>

--047d7b603ef248d1e304c97bab54--