any way to get Java source after conversion from Pig script ?


1 Answer(s)


Hi Igor,

Pig program is interpreted by a Pig Interpreter which simply converts the pig latin script into map reduce jobs and then pass control to hadoop for execution of these map reduce jobs.
The whole processing is internal to pig framework and is not available for end-user to view.
However, if you want to see the pig script to map-reduce conversion plan, EXPLAIN and ILLUSTRATE can help better. Use them after defining the command eg.
v1 =
EXPLAIN v1
ILLUSTRATE v1

If you want to get deep insights, this paper would help:
http://www.vldb.org/pvldb/2/vldb09-1074.pdf

Hope this helps.
Happy Learning @ Dezyre