You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Visioner Sadak <vi...@gmail.com> on 2012/09/06 16:56:39 UTC

Accessing image files from hadoop to jsp

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...

Re: Accessing image files from hadoop to jsp

Posted by Bharath Mundlapudi <mu...@gmail.com>.
You should never expose internal host names in the Javascript/HTML.

The flow can be

Browser --> Tomcat --(REST, HDFS Client)--> HDFS

Your web app can make REST requests to HDFS and you could use JAX-RS impl
for REST talk in your web app.

I must warn that user experience will suffer by any of these approaches.
You need some sort of caching solution on top of these proposals.

-Bharath



On Tue, Sep 11, 2012 at 1:48 PM, Visioner Sadak <vi...@gmail.com>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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Arpit Gupta <ar...@hortonworks.com>.
your browser does not know what an hftp file system is so it wont work. If you use WebHDFS it has rest api's that you can use to read data from hdfs. I would suggest look at those and try them out.

http://hadoop.apache.org/docs/stable/webhdfs.html

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

On Sep 11, 2012, at 1:48 PM, Visioner Sadak <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <mi...@hotmail.com>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 <vi...@gmail.com>
> 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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <mi...@hotmail.com>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 <vi...@gmail.com>
> 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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <mi...@hotmail.com>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 <vi...@gmail.com>
> 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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <mi...@hotmail.com>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 <vi...@gmail.com>
> 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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Michael Segel <mi...@hotmail.com>.
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 <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Michael Segel <mi...@hotmail.com>.
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 <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Michael Segel <mi...@hotmail.com>.
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 <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Bharath Mundlapudi <mu...@gmail.com>.
You should never expose internal host names in the Javascript/HTML.

The flow can be

Browser --> Tomcat --(REST, HDFS Client)--> HDFS

Your web app can make REST requests to HDFS and you could use JAX-RS impl
for REST talk in your web app.

I must warn that user experience will suffer by any of these approaches.
You need some sort of caching solution on top of these proposals.

-Bharath



On Tue, Sep 11, 2012 at 1:48 PM, Visioner Sadak <vi...@gmail.com>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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Arpit Gupta <ar...@hortonworks.com>.
your browser does not know what an hftp file system is so it wont work. If you use WebHDFS it has rest api's that you can use to read data from hdfs. I would suggest look at those and try them out.

http://hadoop.apache.org/docs/stable/webhdfs.html

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

On Sep 11, 2012, at 1:48 PM, Visioner Sadak <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Michael Segel <mi...@hotmail.com>.
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 <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Bharath Mundlapudi <mu...@gmail.com>.
You should never expose internal host names in the Javascript/HTML.

The flow can be

Browser --> Tomcat --(REST, HDFS Client)--> HDFS

Your web app can make REST requests to HDFS and you could use JAX-RS impl
for REST talk in your web app.

I must warn that user experience will suffer by any of these approaches.
You need some sort of caching solution on top of these proposals.

-Bharath



On Tue, Sep 11, 2012 at 1:48 PM, Visioner Sadak <vi...@gmail.com>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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Bharath Mundlapudi <mu...@gmail.com>.
You should never expose internal host names in the Javascript/HTML.

The flow can be

Browser --> Tomcat --(REST, HDFS Client)--> HDFS

Your web app can make REST requests to HDFS and you could use JAX-RS impl
for REST talk in your web app.

I must warn that user experience will suffer by any of these approaches.
You need some sort of caching solution on top of these proposals.

-Bharath



On Tue, Sep 11, 2012 at 1:48 PM, Visioner Sadak <vi...@gmail.com>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 <vi...@gmail.com>wrote:
>
>> or shud i use datanode ip for accessing images using hftp
>>
>> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>>
>> my datanode is at 50075
>>
>>
>> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>>
>>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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   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
>>>>
>>>
>>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Arpit Gupta <ar...@hortonworks.com>.
your browser does not know what an hftp file system is so it wont work. If you use WebHDFS it has rest api's that you can use to read data from hdfs. I would suggest look at those and try them out.

http://hadoop.apache.org/docs/stable/webhdfs.html

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

On Sep 11, 2012, at 1:48 PM, Visioner Sadak <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Arpit Gupta <ar...@hortonworks.com>.
your browser does not know what an hftp file system is so it wont work. If you use WebHDFS it has rest api's that you can use to read data from hdfs. I would suggest look at those and try them out.

http://hadoop.apache.org/docs/stable/webhdfs.html

--
Arpit Gupta
Hortonworks Inc.
http://hortonworks.com/

On Sep 11, 2012, at 1:48 PM, Visioner Sadak <vi...@gmail.com> 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 <vi...@gmail.com> wrote:
> or shud i use datanode ip for accessing images using hftp
>  
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>  
> my datanode is at 50075
> 
>  
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com> 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><img src ="hftp://localhost:50070/Comb/java1.jpg"/></td>
> 
> On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@gmail.com> wrote:
> > is webhdfs a viable approach???
> >
> >
> > On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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
> 
> 
> 


Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <vi...@gmail.com>wrote:

> or shud i use datanode ip for accessing images using hftp
>
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>
> my datanode is at 50075
>
>
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>
>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>>
>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <vi...@gmail.com>wrote:

> or shud i use datanode ip for accessing images using hftp
>
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>
> my datanode is at 50075
>
>
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>
>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>>
>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <vi...@gmail.com>wrote:

> or shud i use datanode ip for accessing images using hftp
>
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>
> my datanode is at 50075
>
>
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>
>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>>
>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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 <vi...@gmail.com>wrote:

> or shud i use datanode ip for accessing images using hftp
>
> <td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>
>
> my datanode is at 50075
>
>
> On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>>
>>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>>
>>
>>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
or shud i use datanode ip for accessing images using hftp

<td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>

my datanode is at 50075


On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>
>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
or shud i use datanode ip for accessing images using hftp

<td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>

my datanode is at 50075


On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>
>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
or shud i use datanode ip for accessing images using hftp

<td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>

my datanode is at 50075


On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>
>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
or shud i use datanode ip for accessing images using hftp

<td><img src ="hftp://localhost:50075/Comb/java1.jpg"/></td>

my datanode is at 50075


On Sat, Sep 8, 2012 at 8:30 PM, Visioner Sadak <vi...@gmail.com>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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>
>
>  On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>


On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>


On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>


On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
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><img src =*"hftp://localhost:50070/Comb/java1.jpg"*/></td>


On Sat, Sep 8, 2012 at 6:47 PM, Harsh J <ha...@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 <vi...@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
>

Re: Accessing image files from hadoop to jsp

Posted by Harsh J <ha...@cloudera.com>.
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 <vi...@gmail.com> wrote:
> is webhdfs a viable approach???
>
>
> On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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

Re: Accessing image files from hadoop to jsp

Posted by Harsh J <ha...@cloudera.com>.
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 <vi...@gmail.com> wrote:
> is webhdfs a viable approach???
>
>
> On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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

Re: Accessing image files from hadoop to jsp

Posted by Harsh J <ha...@cloudera.com>.
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 <vi...@gmail.com> wrote:
> is webhdfs a viable approach???
>
>
> On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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

Re: Accessing image files from hadoop to jsp

Posted by Harsh J <ha...@cloudera.com>.
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 <vi...@gmail.com> wrote:
> is webhdfs a viable approach???
>
>
> On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
is webhdfs a viable approach???

On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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...
>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
is webhdfs a viable approach???

On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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...
>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
is webhdfs a viable approach???

On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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...
>
>
>

Re: Accessing image files from hadoop to jsp

Posted by Visioner Sadak <vi...@gmail.com>.
is webhdfs a viable approach???

On Thu, Sep 6, 2012 at 8:26 PM, Visioner Sadak <vi...@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...
>
>
>