Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Unable to open iterator

Copy link to this message
Unable to open iterator
I have this simple pig script but when I run I get:

2012-08-28 17:50:24,924 [main] INFO
- Failed!
2012-08-28 17:50:24,939 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1066: Unable to open iterator for alias C

DEFINE SequenceFileLoader
A = LOAD '/flume_vol/flume/2012/08/24/13/dslg1/*.snappy' USING
SequenceFileLoader AS (key:long, document:bytearray);
B = GROUP A BY key;
C = foreach B generate COUNT(A);
dump C;
I do see data in the files:

 hadoop fs -cat