Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB