Got the same problem that's because they are not really unit test but more functionnal tests, you need a cluster to run them...

You need to specify a hadoop-site.xml when running tests:
ant -Djunit.*hadoop.conf*=hadoop-site.xml test

see: http://wiki.apache.org/pig/HowToContribute

Stefan Groschupf a écrit :
Looks like ant clean test does not include cc-compile. I will work on that.

I think I changed some ant "depends" in PIG-68 for the same reason...

However beside that now I get this error:
Testsuite: org.apache.pig.test.TestGrunt
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.264 sec
------------- Standard Error -----------------
08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to hadoop file system at: file:/// 08/02/13 11:07:47 INFO executionengine.HExecutionEngine: Connecting to map-reduce job tracker at: local
------------- ---------------- ---------------

Testcase: testCopyFromLocal took 0.261 sec
    Caused an ERROR
Bad mapred.job.tracker: local
java.lang.RuntimeException: Bad mapred.job.tracker: local
at org.apache.hadoop.mapred.JobTracker.getAddress(JobTracker.java:711) at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:149)
    at org.apache.pig.impl.PigContext.connect(PigContext.java:180)
    at org.apache.pig.PigServer.<init>(PigServer.java:126)
    at org.apache.pig.PigServer.<init>(PigServer.java:117)
    at org.apache.pig.test.TestGrunt.testCopyFromLocal(TestGrunt.java:19)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Reply via email to