make sense of your big data - pilato

36
#elasticsearch MAKE SENSE OF YOUR (BIG) DATA! David Pilato Technical advocate elasticsearch. @dadoonet

Upload: codemotion

Post on 26-Jan-2015

107 views

Category:

Technology


1 download

DESCRIPTION

Slides from David Pilato talk @ codemotion roma 2014

TRANSCRIPT

Page 1: Make sense of your big data - Pilato

#elasticsearch

MAKE SENSE OF YOUR (BIG) DATA!

David Pilato Technical advocate !elasticsearch. @dadoonet

Page 2: Make sense of your big data - Pilato
Page 3: Make sense of your big data - Pilato

StartUp #elasticsearch

data ?

Page 4: Make sense of your big data - Pilato

StartUp #elasticsearch

Page 5: Make sense of your big data - Pilato

StartUp #elasticsearch

Page 6: Make sense of your big data - Pilato

StartUp #elasticsearch

Page 7: Make sense of your big data - Pilato

StartUp #elasticsearch

Page 8: Make sense of your big data - Pilato

StartUp #elasticsearch

Page 9: Make sense of your big data - Pilato

StartUp #elasticsearch

BIG data ?

Page 10: Make sense of your big data - Pilato

StartUp #elasticsearch

BIG data ?

Page 11: Make sense of your big data - Pilato

StartUp #elasticsearch

Source: http://www.csc.com/insights/flxwd/78931-big_data_just_beginning_to_explode

35.000.000.000.000.000 mb

Page 12: Make sense of your big data - Pilato

StartUp #elasticsearch

Source: http://www.thebigdatainsightgroup.com/site/article/big-data-infographic

Page 13: Make sense of your big data - Pilato
Page 14: Make sense of your big data - Pilato

StartUp #elasticsearch

search = like % ?SELECT doc.*, country.* FROM doc, country WHERE doc.country_code = country.code AND doc.date_doc > to_date('2011-12', 'yyyy-mm') AND doc.date_doc < to_date('2012-01', 'yyyy-mm') AND lower(country.name) = 'france' AND lower(doc.comment) LIKE ‘%product%' AND lower(doc.comment) LIKE ‘%david%';

Page 15: Make sense of your big data - Pilato

StartUp #elasticsearch

Search engine ?

Page 16: Make sense of your big data - Pilato

StartUp #elasticsearch

elasticsearch ?

plug & play

REST/JSON

scalable

Apache 2 license

Lucene

elasticsearch

Page 17: Make sense of your big data - Pilato

#elasticsearch

Start…

$ wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz!$ tar -xf elasticsearch-1.1.0.tar.gz!$ ./elasticsearch-1.1.0/bin/elasticsearch![INFO ][node ][Ghost Maker] {1.1.0}[5645]: initializing

Page 18: Make sense of your big data - Pilato

#elasticsearch

… and play!$ curl -XPUT localhost:9200/sessions/session/1 -d '{! "title" : "Elasticsearch",! "subtitle" : "Make sense of your (BIG) data !",! "date" : "2014-04-12T14:10:00",! "tags" : [ "elasticsearch", "codemotion", "bigdata" ],! "speakers" : [{! "first_name" : "David", ! "last_name" : "Pilato" ! }]!}'

Page 19: Make sense of your big data - Pilato

#elasticsearch

Search!$ curl http://localhost:9200/sessions/session/_search -d' { "query": { "multi_match": { "query": "elasticsearch codemotion david", "fields": [ "title^3", "tags^2", "speakers.first_name" ] } }, "post_filter": { "range": { "date": { "from": "2014-04-09", "to": "2014-04-13" } } } }'

Page 20: Make sense of your big data - Pilato

StartUp #elasticsearch

Compute?

Page 21: Make sense of your big data - Pilato

#elasticsearch

$ curl http://localhost:9200/sessions/session/_search -d' { "query": { ... }, "aggs": { "by_date": { "date_histogram": { "field": "date", "interval": "day", "format" : "dd/MM/yyyy" } } } }'

"by_date": [ { "key_as_string": "03/04/2014", "doc_count": 1 }, { "key_as_string": "12/04/2014", "doc_count": 2 }, { "key_as_string": "16/04/2014", "doc_count": 3 } ]

Compute!

Page 22: Make sense of your big data - Pilato
Page 23: Make sense of your big data - Pilato

#mstechdays #elasticsearch StartUp #elasticsearch

• logs

• twitter

• github

• marketing data

• ...

• your data

• your big data

Let’s make sense of …

Page 24: Make sense of your big data - Pilato

#mstechdays #elasticsearch StartUp #elasticsearch

• logs

• twitter

• github

• marketing data

• ...

• your data

• your big data

Let’s make sense of …{ "name":"Pilato David", "dateOfBirth":"1971-12-26", "gender":"male", "children":3, "marketing":{ "fashion":334, "music":3363, "hifi":2351 }, "address":{ "country":"France", "city":"Paris", "location": [2.332395, 48.861871] } }

Page 25: Make sense of your big data - Pilato

démo#mstechdays #elasticsearch StartUp #elasticsearch

MAKE SENSE OF YOUR (BIG) DATA!

let’s inject some marketing documents…

Page 26: Make sense of your big data - Pilato

#elasticsearch

ELASTICSEARCH

Page 27: Make sense of your big data - Pilato

StartUp #elasticsearch

Distributed indices node 1

orders

products

1 2

3 4

1 2

$ curl -XPUT localhost:9200/orders -d '{! "settings.index.number_of_shards" : 4,! "settings.index.number_of_replicas" : 1!}'

$ curl -XPUT localhost:9200/products -d '{! "settings.index.number_of_shards" : 2,! "settings.index.number_of_replicas" : 0!}'

Page 28: Make sense of your big data - Pilato

StartUp #elasticsearch

Distributed indices node 1

orders

products

1 2

3 4

1 2

node 2

$ bin/elasticsearch![INFO ][cluster.service][Armageddon] detected_master [Ghost Maker]

Page 29: Make sense of your big data - Pilato

StartUp #elasticsearch

Distributed indices node 1

orders

products

1

4

1

node 2

orders

products

2

3

2

2

3

1

4

2

3

2

Page 30: Make sense of your big data - Pilato

StartUp #elasticsearch

node 3

Distributed indices node 1

orders

products

1

4

1

node 2

orders

products

2

3

2

2

3

1

4

$ bin/elasticsearch![INFO ][cluster.service][Karnak] detected_master [Ghost Maker]

Page 31: Make sense of your big data - Pilato

StartUp #elasticsearch

node 3

products

orders

Distributed indices node 1

orders

products

1

4

1

node 2

orders

products

2

33

2

2

3

1

4 3

1

4

Page 32: Make sense of your big data - Pilato

elasticsearch.elasticsearch

kibana

logstash

Marvel

Page 33: Make sense of your big data - Pilato

elasticsearch.Training (public and on-site)

Development support

Production support

Marvel

Page 34: Make sense of your big data - Pilato
Page 35: Make sense of your big data - Pilato

@dadoonet

questions ?

we are hiring! [email protected]

Page 36: Make sense of your big data - Pilato

@dadoonet

grazie !