Tracking a Soccer Game with Big Data
Asanka Abeysinghe
Vice President, Solutions Architecture - WSO2,Inc
Tracking a Soccer Game with Big Data QCon Sao Paulo - 2015 Asanka - - PowerPoint PPT Presentation
Tracking a Soccer Game with Big Data QCon Sao Paulo - 2015 Asanka Abeysinghe Vice President, Solutions Architecture - WSO2,Inc Story about soccer 2 and Big Data 3 Outline Big Data and CEP Tracking a Soccer Game Making it
Asanka Abeysinghe
Vice President, Solutions Architecture - WSO2,Inc
2
3
4
Photo credit John Trainoron Flickr http://www.flickr.com/photos/trainor/2902023575/, Licensed under CC
5
Photo credit http://www.flickr.com/photos/kcolwell/5512461652/ CC license
6
7
8
9
10
11
12
13
14
15
16
from Ball#window.time(30s) select avg(v) ..
from Ball[v>10], Ball[v<10]*,Ball[v>10] select ..
Define table HitV (v double) using .. db info ..
17
18
sid, ts, x,y,z, v,a
19
define partition player by Players .id; from s = Players [v <= 1 or v > 11] , t = Players [v > 1 and v <= 11]+ , e = Players [v <= 1 or v > 11] select s.ts as tsStart , e.ts as tsStop ,s.id as playerId , ‘‘trot" as intensity , t [0].v as instantSpeed , (e.ts - s.ts )/1000000000 as unitPeriod insert into RunningStats partition by player;
20
21
22
23
24
25
26
27
28
29
30
SiddhiBolt siddhiBolt1 = new SiddhiBolt( .. siddhi queries .. ); SiddhiBolt siddhiBolt2 = new SiddhiBolt( .. siddhi queries .. ); TopologyBuilder builder = new TopologyBuilder(); builder.setSpout("source", new PlayStream(), 1); builder.setBolt("node1", siddhiBolt1, 1) .shuffleGrouping("source", "PlayStream1"); .. builder.setBolt("LeafEacho", new EchoBolt(), 1) .shuffleGrouping("node1", "LongAdvanceStream"); .. cluster.submitTopology("word-count", conf, builder.createTopology());
31
32
Agent agent = new Agent(agentConfiguration); publisher = new AsyncDataPublisher( "tcp://localhost:7612", .. ); StreamDefinition definition = new StreamDefinition(STREAM_NAME, VERSION); definition.addPayloadData("sid", STRING); ... publisher.addStreamDefinition(definition); ... Event event = new Event(); event.setPayloadData(eventData); publisher.publish(STREAM_NAME, VERSION, event);
33
34
35
36
37
38
PATTERN DRIVEN ARCHITECTURE SECURING THE INSECURE CREATING AN API CENTRIC ENTERPRISE
15:35-16:25 16:40-17:30
NEXT-GEN APPS WITH IOT AND CLOUD PANEL: BUILDING TOMORROW’SENTERPRISE: REPORTS FORM THE GROUND WARS
39
40
Connect : @asankama | asankaa AT wso2.com | http://asanka.abeysinghe .org