Grokbase Groups Pig user May 2009
Dear users,
I run the query on the "Pig Script" window, my query is :

log = LOAD 'excite-small.log' AS (user, timestamp, query);
grpd = GROUP log BY user;
cntd = FOREACH grpd GENERATE group, COUNT(log);
STORE cntd INTO 'output_1';

Nothing unusual. But now I have a question: Where do I indicate the pig
mode( local, hadoop) ? Because an error message display that it can't find
the "excite-small.log". So also how to indicate it that this file is
actually located in a HDFS?

Thank you,


Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedMay 28, '09 at 11:29p
activeMay 29, '09 at 5:46p

2 users in discussion

George Pang: 2 posts Shubham Chopra: 1 post



site design / logo © 2021 Grokbase