Disclaimer

At the time I'm writing this, Pig is not stable yet and didn't release any official version.

This plugin is a work in progress and is not stable yet (and will not be until an official pig release)

But any help to improve this plugin will be greatly appreciate :)

Install

Add Sausage update site url https://sausage.svn.sourceforge.net/svnroot/sausage/update-site/ to Eclipse.

Help > Software Updates > Find and Install

Use

Create a "test.pig" file.

Type a pig query like for example:

input = LOAD '/my/path/to/part-00000' USING PigStorage();
words = FOREACH input GENERATE FLATTEN(TOKENIZE(*));
grouped = GROUP words BY $0;
counts = FOREACH grouped GENERATE group, COUNT(words);

You'll see the pig language keywords will be highlighted.

Enter connection parameters to your hadoop cluster in eclipse preferences > pig


Run your pig query with the pig button in the tool bar.

Watch eclipse console for output.

More...