How does Hive job execution flow works

0 votes

Hi,

Can anyone help me to understand how the Hive execution flow works?

May 13, 2019 in Big Data Hadoop by disha
• 4,752 views

1 answer to this question.

0 votes

Hey,

Hive query is received from UI or from thrift server or CLI and it is received by driver. So the driver contacts the compiler to validate the hive query. So, the compiler interns contact the metastore to check the schema or syntactic validation of the query, then metastore response to the compiler, compiler sends the response back to the driver. Driver then takes the plan generated by compiler and sends it to the execution engine. Execution engine validates the plan, Plan contains direct acyclic graph of MapReduce jobs or tasks that has to be executed on the cluster for getting response or results to the query. So execution engine sends the DAG to Hadoop cluster, where its actually gets executed and the results again sends back to the execution engine. Those results, execution engines sends back to the driver and driver finally sends back to the client program. This is how Hive communication happens.

answered May 13, 2019 by Gitika
• 65,730 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to pause and resume hive job?

Practically speaking, it's difficult/impossible to pause and resume ...READ MORE

answered Jul 17, 2018 in Big Data Hadoop by Neha
• 6,300 points
• 2,638 views
0 votes
1 answer

How many files can hive create in HDFS duringbMapReduce job?

There is a limit on how many ...READ MORE

answered May 21, 2019 in Big Data Hadoop by Charuni
• 2,512 views