hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreekanth Ramakrishnan <>
Subject Re: The control flow of hive
Date Thu, 20 Jan 2011 06:47:05 GMT
Hi Abhinav,

If you are looking in source you should start looking at the code in

 *   For actual execution and result handling take a look at the Driver class, this method
calls up semantic analyser, generates plans and tasks and takes care of execution. You can
take a look at the code flow from there.
 *   The metadata information is fetched in method getMetadata method in SemanticAnalyser.
Which inturn calls BaseSemanticAnalysers db to get metadata information. The protocol used
to talk to metastore is thrift.
 *   And result fetching is done thro fetch operator.  You can take a look at the explain
extended in the query to see the parameters.


On 1/20/11 11:38 AM, "abhinav narain" <> wrote:

I have two questions to ask,
How does one have access to metastore of Hive, to retrieve the schema
information from it.
I cant find a file or other such thing in source code.

How does one get the handle of the result that is produced after the query.

If someone can tell about where to look for the answers, that will also help


Sreekanth Ramakrishnan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message