How can I get the MapReduce Jobs source code created by the Hive compiler?

I would like to know what the code generated by the SQL Hive compiler is (i.e. if I execute one sql statement , I would like to see the MapReduce job code generated by the SQL hive compiler.)

How can i get it?

+5
source share
1 answer

For Hive, he serializes the physical plan into an XML file (page 15 at http://www.slideshare.net/nzhang/hive-anatomy ). So, I do not think that users can get real source codes for hadoop. To get the code, you can try YSmart ( http://ysmart.cse.ohio-state.edu/ ). This is a translator that will translate your SQL queries into java source code for hadoop. You can use the online version of YSmart. Just send the schema and your request, you can view and download the Java code.

+15
source

All Articles