- Create a maven project using m2eclipse.
- Add org.apache.pig:pig as dependency.
- Click "Debug configurations ...".
- Create a "Java Application".
- Main class "org.apache.pig.Main".
- In Arguments tab, put "-x local" and other arugments in "Program arguments".
- In Environment tab, create a variable "PATH" as "${env_var:path};c:\cygwin\bin" if your OS is Windows.
- Debug your script, and Eclipse will stop at the breakpoint you set in UDF.
Hello Ben,
ReplyDeleteI created a maven project, and would like to add the dependency (second bullet) but there is no pig dependency available on the catalog. Any suggestion? Thanks,
Keren
Sorry for late reply. Hope you already resolve the issue.
ReplyDeleteI can find the artifact of pig here:
http://search.maven.org/#search%7Cga%7C1%7Corg.apache.pig
It is possible that something wrong in your maven settings.
+ Window->Show View->Maven Repository
+ Check if you have "central (http://repo1.maven.org/maven2)" in "Global Repositories"