Grokbase Groups Pig user June 2010
FAQ
Hi
I'm absolutely new with using Pig, only just picked it up like 3 days ago, and still trying to wrap my head around it. I'm stuck with putting together a query.


A DUMP of my sample dataset is as follows,


log = LOAD 'example-users.txt' AS (user:chararray, page:chararray);
DUMP log;



(User1,a)
(User1,b)
(User2,f)
(User3,b)
(User2,a)
(User1,e)
(User2,b)
(User2,c)
(User3,d)
(User1,d)
(User2,e)
(User2,a)
(User3,c)
(User1,d)
(User2,c)
(User3,a)
(User1,d)
(User2,b)
(User2,e)
(User3,c)


What I'm trying to do is to say, Users visiting page 'a' also visited this list of other pages ranked by number of times the page was visited. Can anyone help or give me some guidance?


Thanks
Leslie

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedJun 30, '10 at 4:41p
activeJul 1, '10 at 3:35p
posts3
users2
websitepig.apache.org

2 users in discussion

Diagnostix: 2 posts Thejas Nair: 1 post

People

Translate

site design / logo © 2022 Grokbase