hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreekanth Ramakrishnan <sreer...@yahoo-inc.com>
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 SemanticAnalyser.java

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

--
Sreekanth




On 1/20/11 11:38 AM, "abhinav narain" <abhinavnarain10@gmail.com> wrote:

Hi,
I have two questions to ask,
1.
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.

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

regards,
Abhinav


--
Sreekanth Ramakrishnan

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