Setting up pig for e2e tests isn’t a daily-work task, it requires patience and sometimes more patience.
Let me first explain the situation: Hadoop 1.0.1-SNAPSHOT, Apache Pig version 0.10.0-SNAPSHOT (r1156275) and Pig version 0.8.1 (obviously, you need an old towards tests).
One common exception thrown while configuring old pig was this:
ERROR 4010: Cannot find hadoop configurations in classpath
It requires in some way to specify the path to core-site.xml or hadoop-site.xml (for older versions). I solved this by adding an env var PIG_CONF_DIR with the path to «hadoop configuration directory».
And that’s it. And as usual: It should works!