如何获取Hive编译器生成的MapReduce Jobs源码?

发布于 2025-01-01 15:20:27 字数 156 浏览 2 评论 0原文

我想知道 SQL Hive 编译器生成的代码是什么(即如果我执行一个sql句子我想看看由 SQL hive 编译器生成的 MapReduce 作业的代码)。

我怎样才能得到它?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

·深蓝 2025-01-08 15:20:27

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文