How can I create a minimal Maven "Pig" project that will also run Pig scripts locally?

I am going through Pig tutorials, but they all seem focused on running Pig scripts from the command line. How can I create a Maven project that would allow me to write short trivial Pig scripts and trigger them from the command line?

In other words, what is the minimal Maven project to host pig scripts and run either the scripts directly or run PigUnit tests in local mode?


Declare pig as a dependency:


The you can create a unit test using PigUnit.

Need Your Help

Why IE browser show "scanstyles does nothing in webkit/firefox internet explorer"?

javascript php jquery internet-explorer browser

In IE browser show some time this script error scanstyles does nothing in webkit/firefox/opera.

a way to list elements by name, html, php

php mysql html inventory

I'm creating a small car dealership website, and on my inventory page I need to be able to list all the cars I have , and a way to narrow them down.