Hi,

Hive server 2 requests Hive to execute the code and Hive uses whatever
engine set (MR, Spark, etc) in hive-site.xml to execute the code and
returns the result set.

Hive Thrift server running on a given port is the gateway but the work done
is performed by Hive optimizer and Hive execution engine.

HTH

Dr Mich Talebzadeh



LinkedIn * 
https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
<https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>*



http://talebzadehmich.wordpress.com


*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.



On 13 September 2016 at 14:49, Srinivasan Hariharan02 <
[email protected]> wrote:

> Hi,
>
> I am I process of analyzing hiveserver2 code to identify how the
> hiveserver 2 executes the query and returns back the result. There are two
> classes CliService.java nad SQLOperation.Java which has executeStatement,
> executeStatementSync and runQuery respectively. From one of these methods
> hiveserver2 pass the sql statement to get executed on execution engine. Can
> anybody tell me from which method it get passed and executed.  My intention
> was to replicate hiveserver2 to run sql query on some other execution
> engine instead of default hive supported (Tez, spark and MR).
>
> *Regards,*
> *Srinivasan Hariharan*
> *+91-9940395830 <%2B91-9940395830>*
>
>
>
>

Reply via email to