OK I see. I just looked at the code in HWISessionManager.java.  So it looks
like either I will have to write my own ruby HWISessionManager that manages
sessions through thrift or expose the existng HWISessionManager via some web
service interface.  Has anyone done this?

Royce


On 9/8/09 1:47 PM, "Edward Capriolo" <[email protected]> wrote:

> On Tue, Sep 8, 2009 at 4:38 PM, Vijay<[email protected]> wrote:
>> Sorry to inject into this thread but I have the same problem (only I'm
>> trying to use the thrift PHP libraries from apache-php scripts). The problem
>> with this approach is that the http request cannot run indefinitely as the
>> server is executing a query. Are there any solutions for this?
>> 
>> Thanks,
>> Vijay
>> 
>> On Tue, Sep 8, 2009 at 1:35 PM, Royce Rollins <[email protected]>
>> wrote:
>>> 
>>> Raghu,
>>> Thanks for the quick response.
>>> Yes.  My application is web based so instead of having to build some kind
>>> of
>>> session model myself for queries that might take a while,  I'd like to use
>>> a session model in the hive service.
>>> 
>>> Royce
>>> 
>>> 
>>> On 9/8/09 1:32 PM, "Raghu Murthy" <[email protected]> wrote:
>>> 
>>>> Our model so far has been to create a new connection to the hive thrift
>>>> server per session. Is there anything specific you are looking for in
>>>> sessions?
>>>> 
>>>> 
>>>> On 9/8/09 1:06 PM, "Royce Rollins" <[email protected]> wrote:
>>>> 
>>>>> I¹m curently working on an application that connects to hive via the
>>>>> thrift
>>>>> ruby libraries.
>>>>> 
>>>>> Does hive support creation of sessions using those libraries.  If so,
>>>>> how?
>>>>> 
>>>>> 
>>>>> Royce
>>>> 
>>> 
>> 
>> 
> 
> Royce,
> 
> The Hive Web Interface deals with this by having a threaded object
> (HWISessionManager) in the Web application scope. I am not sure if PHP
> has any equivalent to threading and Application Scope.
> 
> Edward

Reply via email to