Hi Gary,

HiveServer2 has recently added an API to support asynchronous execution:
https://github.com/apache/hive/blob/trunk/service/if/TCLIService.thrift#L604

You will have to create an instance of Thrift HiveServer2 client and while
creating the request object for ExecuteStatement, set runAsync as true.

Thanks,
--Vaibhav


On Sun, Sep 29, 2013 at 9:23 PM, Gary Zhao <garyz...@gmail.com> wrote:

> I'm using node.js which is async.
>
>
> On Sun, Sep 29, 2013 at 5:32 PM, Brad Ruderman <bruder...@radiumone.com>wrote:
>
>> Typically it be your application that opens the process off the main
>> thread. Hue (Beeswax specifically) does this and you can see the code here:
>> https://github.com/cloudera/hue/tree/master/apps/beeswax
>>
>> Thx
>>
>>
>>
>> On Sun, Sep 29, 2013 at 5:15 PM, kentkong_work <kentkong_w...@163.com>wrote:
>>
>>> **
>>> hi all,
>>> just wonder if there is offical solution for async call to hive?
>>> hive query runs so long time, my application can't block until it
>>> returns.
>>>
>>>
>>> Kent
>>>
>>>
>>
>>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to