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.
yhuai source
share