Re: sliding Top N window

2016-03-27 Thread Lars Albertsson
gt;> >>> events >> >>> >>> in micro batches based on processing time, not event time. >> >>> >>> >> >>> >>> I made a presentation on approximate counting a couple of years >> >>> >>> ago. >> &g

Re: sliding Top N window

2016-03-24 Thread Lars Albertsson
; > Good day, >> >>> > >> >>> > I have a following task: a stream of “page vies” coming to kafka >> >>> > topic. >> >>> > Each >> >>> > view contains list of product Ids from a visited page. The task: to &

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
gt; >>> > I am interested in some solution that would require minimum > >>> > intermediate > >>> > writes … So need to build a sliding window for top N product, where > >>> > the > >>> > product counters dynamically chang

Re: sliding Top N window

2016-03-22 Thread Lars Albertsson
emory/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. >>> > >>> > So I believe I see one way of doing it: >>> >Take,

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
ike to do all logic, all >>> > calculation on a fly, in memory, not spilling multiple RDD from memory >>> to >>> > disk. >>> > >>> > So I believe I see one way of doing it: >>> >Take, msg from kafka take and line up, all elem

Re: sliding Top N window

2016-03-22 Thread Jatin Kumar
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 >> > easier, with incrementColumnValue()… >> > After each increment I can apply my

Re: sliding Top N window

2016-03-21 Thread Rishi Mishra
t; 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 > > with atomic operations). > > But there is another stream of even

Re: sliding Top N window

2016-03-21 Thread Lars Albertsson
tion “offer” would provide > that only top N products with counters are kept in another Hbase table (also > with atomic operations). > But there is another stream of events: decreasing product counters when > view expires the legth of sliding window…. > > So my question: does a

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