Re: sliding Top N window

2016-03-27 Thread Lars Albertsson
time. >> >>> >>> >> >>> >>> I made a presentation on approximate counting a couple of years >> >>> >>> ago. >> >>> >>> Slides and video here: >> >>> >>> >> >&g

Re: sliding Top N window

2016-03-24 Thread Lars Albertsson
“page vies” coming to kafka >> >>> > topic. >> >>> > Each >> >>> > view contains list of product Ids from a visited page. The task: to >> >>> > have in >> >>> > “real time” Top N product. >> >>> > >&

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
need to build a sliding window for top N product, where > >>> > the > >>> > product counters dynamically changes and window should present the > TOP > >>> > product for the specified period of time. > >>> > > >>> > I bel

Re: sliding Top N window

2016-03-22 Thread Lars Albertsson
gt;> > I believe there is no way to avoid maintaining all product counters >>> > counters >>> > in memory/storage. But at least I would like to do all logic, all >>> > calculation on a fly, in memory, not spilling multiple RDD from memory >>> > to &g

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
o avoid maintaining all product counters >>> counters >>> > in memory/storage. But at least I would like to do all logic, all >>> > calculation on a fly, in memory, not spilling multiple RDD from memory >>> to >>> > disk. >>

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
>> > So I believe I see one way of doing it: >> >Take, msg from kafka take and line up, all elementary action >> (increase by >> > 1 the counter for the product PID ) >> > Each action will be implemented as a call to HTable.increment() // or >&

Re: sliding Top N window

2016-03-22 Thread Rishi Mishra
t; Each action will be implemented as a call to HTable.increment() // or > > easier, with incrementColumnValue()… > > After each increment I can apply my own operation “offer” would provide > > that only top N products with counters are kept in another Hbase table > (also > > w

Re: sliding Top N window

2016-03-21 Thread Lars Albertsson
iding window…. > > So my question: does anybody know/have and can share the piece code/ know > how: how to implement “sliding Top N window” better. > If nothing will be offered, I will share what I will do myself. > > Thank you > Alexey > This message, including any attachments, i

sliding Top N window

2016-03-11 Thread Yakubovich, Alexey
when view expires the legth of sliding window…. So my question: does anybody know/have and can share the piece code/ know how: how to implement “sliding Top N window” better. If nothing will be offered, I will share what I will do myself. Thank you Alexey This message, including any attachments