Reply
New Contributor
Posts: 1
Registered: ‎12-31-2015

ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias

 

I have loaded data using below statement , which was successful-

a = load 'data.txt' using PigStorage (' ');

 

Next I tried to execute the  below statement
b = group a by $3;

 

Here I am getting this error : ERROR 1066: Unable to open iterator for alias b.

 

I am running pig in ocal mode .

 

Can anyone please guide me to resolve this .

Highlighted
Posts: 1,896
Kudos: 433
Solutions: 303
Registered: ‎07-31-2013

Re: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias

Can you share the full script and the failure log written by Pig (you'll see the filename on the screen)?
Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.