GitHub user zjffdu opened a pull request: https://github.com/apache/zeppelin/pull/1476
[WIP] ZEPPELIN-335. Pig Interpreter ### What is this PR for? Based on #338 , I refactor most of pig interpreter. As I don't think the approach in #338 is the best approach. In #338, we use script `bin/pig` to launch pig script, it is different to control that job (hard to kill and get progress and stats info). In this PR, I use pig api to launch pig script. Besides that I implement another interpreter type `%pig.query` to leverage the display system of zeppelin. For the details you can check `pig.md` ### What type of PR is it? [Feature] ### Todos * Syntax Highlight * new interpreter type `%pig.udf`, so that user can write pig udf in zeppelin directly and don't need to build udf jar manually. ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-335 ### How should this be tested? Unit test is added and also manual test is done ### Screenshots (if appropriate)  ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No You can merge this pull request into a Git repository by running: $ git pull https://github.com/zjffdu/zeppelin ZEPPELIN-335 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/1476.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1476 ---- commit ef2223abab92a452b48372ac0b4c50b70646f984 Author: Ali Bajwa <aba...@hortonworks.com> Date: 2015-10-06T05:40:06Z initial commit of pig interpreter commit 656329d00a766570b25970506aa9e7a95edd8f8a Author: Ali Bajwa <aba...@hortonworks.com> Date: 2015-10-06T06:25:47Z exposed timeout and pig executable via interpreter and added comments commit 9c88100ee920b3caaccffc0da6771880fc7f15d9 Author: Ali Bajwa <aba...@hortonworks.com> Date: 2015-10-07T05:02:18Z Updated based on comments: 1. Documentation: added pig.md with interpreter documentation and added pig entry to index.md 2. Added test junit test based on passwd file parsing example here https://pig.apache.org/docs/r0.10.0/start.html#run 3. Removed author tag from comment (this was copied from shell interpreter https://github.com/apache/incubator-zeppelin/blob/master/shell/src/main/java/org/apache/zeppelin/shell/ShellInterpreter.java#L42) 4. Implemented cancel functionality 5. Display output stream in case of error commit 1b36809359beb045727b4d7abaac9d1785401d5b Author: Jeff Zhang <zjf...@apache.org> Date: 2016-09-27T09:25:56Z Merge branch 'pr/338' into ZEPPELIN-335 commit 529b3e5a29536f877229eb9bcb30a1ca53525bc3 Author: Jeff Zhang <zjf...@apache.org> Date: 2016-09-28T11:41:24Z refactor pig Interpreter ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---