简体   繁体   中英

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

I'd like to know what is the code generated by the compiler of SQL Hive ( ie 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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