我如何获得由Hive编译器生成的MapReduce Jobs源代码? [英] How can I get the MapReduce Jobs source codes generated by the Hive compiler?

查看:300
本文介绍了我如何获得由Hive编译器生成的MapReduce Jobs源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道SQL Hive 编译器生成的代码是什么(即如果我执行一个sql语句我希望看到由SQL配置单元编译器生成的MapReduce作业代码)。



如何获取它?

解决方案

对于Hive,它将物理计划序列化为一个xml文件(第15页 http://www.slideshare.net/nzhang/hive-anatomy )。所以,我不认为用户可以获得hadoop的真实源代码。要获取代码,您可以尝试YSmart( http://ysmart.cse.ohio-state.edu/ ) 。这是一个翻译器,将您的sql查询转换为hadoop的java源代码。您可以使用YSmart的在线版本。只需提交模式和查询,就可以查看和下载Java代码。

I'd like to know what is the code generated by the compiler of SQL Hive ( i.e. if I execute one sql sentence I'd like to see the code of MapReduce jobs generated by compiler of SQL hive).

How can I get it?

解决方案

For Hive, it serializes the physical plan into an xml file (page 15 in http://www.slideshare.net/nzhang/hive-anatomy). So, I do not think that users can get the real source codes for hadoop. To get the code, you can try YSmart (http://ysmart.cse.ohio-state.edu/). It is a translator that will translate your sql queries to the java source code for hadoop. You can use the online version of the YSmart. Just submit the schema and your query, you will be able to view and download the java code.

这篇关于我如何获得由Hive编译器生成的MapReduce Jobs源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆