elasticsearch 1.x cluster installation (virtualbox)
TRANSCRIPT
کارگاه پردازش داده توزیع شده
پردیس- شهیدبهشتی
دانشکده علوم و مهندسی کامپیوتر
پایگاه داده توزیع شدهدرس:
دکتر هادی طباطباییاستاد:
ابوالفضل صدیقی ارائه: ۱۳۹۳آذر
2
Elasticsearch Cluster Installation
Amir Sedighi@amirsedighi
http://hexican.com
Dec 2014
3
References
● http://www.elasticsearch.org
● http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.html
4
Topics
● Assumptions● First Node
– Java Installation
– Downloading and Extracting Elasticsearch
– Configuration
● Cloning● Starting ES Cluster
● ES REST API● ES General Concepts
– Index, Shard, Segment– Plugins
● River● CSV● JDBC
● Feeder● ES Commands● ES GUIs
– Cluster Monitoring– Analytical Search and BI
5
Assumptions
● You already know about Linux.
– http://www.slideshare.net/AmirSedighi/distrinuted-data-processing-workshop-sbu
6
Installing Java
● $ sudo apt-get install default-jdk
7
Downloading and Extracting
● http://hadoop.apache.org/releases.html
● $ tar -zxvf elasticsearch1.3.2.gz
8
Elasticsearch Configuration
● You would need to modify elasticsearch.yml and append the following as a minimum configuration
cluster.name: hexican
name.name: "node1"
node.master: true
node.data: false
9
Elasticsearch configuration
● Minimum ● Rich
10
Reboot
● $ sudo reboot
11
Cloning
● Clone the first machine and extend your cluster.
– Find the instruction here:● http://www.slideshare.net/AmirSedighi/distrinuted-data-
processing-workshop-sbu
12
Plugins
13
Plugins
14
Plugins
● River
● Feeder
15
Starting Elasticsearch Cluster
● You can run nodes one by one
– $ elasticsearch-1.3.4/bin/elasticsearch
● You can run all nodes at once using DSH
– $ dsh -M -a – 'elasticsearch-1.3.4/bin/elasticsearch'
16
River
17
River
18
River
19
Shutdown Cluster
$ curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown'
20
Cluster Health
21
22
Cluster Health
23
24
25
26
27
28
Metrics
29
Questions?