1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

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



0
since Pig is converting into Java eventually, is there any way to get Java source after conversion from Pig source ?

1 Answer(s)


0

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

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password