I am trying to run one of the examples from the pig 0.9.2 distribution andam running into the following exception: [junit] Unable to open iterator for alias queries_limit [junit] org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066:Unable to open iterator for alias queries_limit [junit] at org.apache.pig.PigServer.openIterator(PigServer.java:901) [junit] at org.apache.pig.pigunit.PigTest.getAlias(PigTest.java:183) [junit] at TopQueriesTest.testTop2Queries(TopQueriesTest.java:32) [junit] Caused by: java.io.IOException: Couldn't retrieve job. [junit] at org.apache.pig.PigServer.store(PigServer.java:965) [junit] at org.apache.pig.PigServer.openIterator(PigServer.java:876)

When I execute the test, I receive the exception above. When I alter theunit test to assert on queries_sum, I receive the correct values. However,when I assert on queries_ordered or queries_limit, I receive the exception.How do I resolve this issue? Thanks in advance.

Hi joe, you get this error when one of the component mapreduce jobs dies. Try going to the job tracker and seeing if there are failed jobs -- you'll be able to get the logs of individual tasks that might contain the actual error.

Hi Dmitriy,I am getting the same error with Pig Version 0.10.1. And I am also trying the same example. I am trying to run the Pig Unit test case. How can I go to the job tracker(where can I get the link). The pig script is running fine when I run normally. But when I try to run it from the Pig Unit test case, I am getting the error "Unable to open the iterator".Please help me. Thanks in advance.

Regards,Prabha Satya.

NEW: Monitor These Apps!

All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext