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

Switch to Plain View
Pig >> mail # user >> Pig fails to read from HDFS


+
JAGANADH G 2012-02-24, 07:27
+
Vivek Padmanabhan 2012-02-24, 08:19
+
Srinivas Reddy 2012-02-24, 13:30
Copy link to this message
-
Re: Pig fails to read from HDFS
@Vivek and @Srinivas:
Thanks for the solution

On Fri, Feb 24, 2012 at 7:00 PM, Srinivas Reddy <[EMAIL PROTECTED]>wrote:

> 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
> >
> >
>

--
**********************************
JAGANADH G
http://jaganadhg.in
*ILUGCBE*
http://ilugcbe.org.in