简体   繁体   English

如何从Hive Query获取Map Reduce代码?

[英]How to obtain Map Reduce code from Hive Query?

Hive如何为每个查询自动生成Map Reduce代码,是否可以查看Hive为每个查询生成的Map Reduce代码?

Hive does not generate Map reduce code rather it uses different type of operators like Map Operator, Reduce Operator , Join Operator, Limit Operator...... It uses the corresponding operators based on plan generated from our SQL. Hive不会生成Map reduce代码,而是使用不同类型的运算符,例如Map Operator,Reduce运算符,Join运算符,Limit运算符……它根据从SQL生成的计划使用相应的运算符。

The code for operators can be found in JAR hive-exec.jar Here is the repository link for the code http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ 可以在JAR hive-exec.jar中找到用于运算符的代码。这是代码http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/的存储库链接蜂巢/ QL /执行/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM