It looks like a similar question was asked before. The solution might be to check the job tracker logs for more information to see what's going on.
I've often found that to be the case, BTW. That checking the initial log isn't enough. Either you have to check the job tracker log OR in the initial error message, it might say some log file on your local machine contains more info. Check that log file. Here's the thread I was referring to: https://mail-archives.apache.org/mod_mbox/pig-user/201106.mbox/%[email protected]%3E William Watson Software Engineer (904) 705-7056 PCS On Thu, Apr 30, 2015 at 4:01 PM, Aaron Zimmerman < [email protected]> wrote: > I had a suite of pig unit tests that worked fine under pig 12. But > recently when I updated to pig 14 they all fail with “Could not retrieve > job”. > > I built a standalone project with the minimum hadoop dependencies, and > tried the pig unit test provided at > http://pig.apache.org/docs/r0.14.0/test.html#PigUnit+Example > > This test verbatim also fails with : > org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to > open iterator for alias queries_limit > at org.apache.pig.PigServer.openIterator(PigServer.java:935) > at > org.apache.pig.pigunit.PigTest.getAliasFromCache(PigTest.java:217) > at org.apache.pig.pigunit.PigTest.assertOutput(PigTest.java:267) > at org.apache.pig.pigunit.PigTest.assertOutput(PigTest.java:300) > at org.apache.pig.pigunit.PigTest.assertOutput(PigTest.java:285) > at TestTopQueries.testTop2Queries(TestTopQueries.java:35) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > {{ etc }} > Caused by: java.io.IOException: Couldn't retrieve job. > at org.apache.pig.PigServer.store(PigServer.java:999) > at org.apache.pig.PigServer.openIterator(PigServer.java:910) > ... 31 more > > > Any one have an idea what might be wrong? Seems like a dependency issue, > but i’ve tried against various versions and they all fail. > > > Thanks, > > > Aaron Zimmerman > > > — > Sent from Mailbox
