How can I get the MapReduce Jobs source codes generated by the Hive compiler?

前端 未结 1 1840
野的像风
野的像风 2021-01-03 03:51

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 compil

相关标签:
1条回答
  • 2021-01-03 04:08

    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.

    0 讨论(0)
提交回复
热议问题