TryBelow:-

A = load 'ngt/ngt.csv' using PigStorage('\t') as(ngram:chararray,
year:int,mc:int,pc:int,vc:int);
B = group A by ngram;
C = foreach B generate group, COUNT(A);
store C into 'ngout/out.txt' using PigStorage('\t');

Regards,
On Fri, Feb 24, 2012 at 3:19 AM, Vivek Padmanabhan <[email protected]>wrote:

> I think the problem is with the COUNT( ngram) invoked with a chararray
>
> http://pig.apache.org/docs/r0.8.1/piglatin_ref2.html#COUNT
>
> Thanks
> Vivek
>
> On 2/24/12 12:57 PM, "JAGANADH G" <[email protected]> wrote:
>
> > Hi All
> > Is there solution for issue discussed here
> >
> https://groups.google.com/a/cloudera.org/group/cdh-user/browse_thread/thread/e
> > 99bf7a5ebdfa6fc/6e532aad085799b9?pli=1
>
>

Reply via email to