1
- === Starting Elasticsearch
1
+ === Installing Elasticsearch
2
2
3
3
The easiest way to understand what Elasticsearch can do for you is to
4
4
play with it, so let's get started!
@@ -8,7 +8,7 @@ Preferably, you should install the latest version of the official Java
8
8
from http://www.java.com[www.java.com].
9
9
10
10
You can download the latest version of Elasticsearch from
11
- http://www.elasticsearch.org/download/.
11
+ http://www.elasticsearch.org/download/[elasticsearch.org/download] .
12
12
13
13
[source,js]
14
14
--------------------------------------------------
@@ -17,22 +17,45 @@ unzip elasticsearch-$VERSION.zip
17
17
cd elasticsearch-$VERSION
18
18
--------------------------------------------------
19
19
20
- Let's also install link:http://www.elasticsearch.org/overview/marvel/[Marvel], a
21
- cluster management and monitoring plugin developed by Elasticsearch. Once
22
- installed, all the code snippets in this book will display a _"View in Sense"_ link.
23
- Clicking this link will load the code into Sense -- an interactive console
24
- inside of Marvel -- and allow you to follow the example using your Elasticsearch
25
- installation.
20
+ TIP: When installing Elasticsearch in production, you can use the method
21
+ described above, or the Debian or RPM packages provided on the
22
+ http://www.elasticsearch.org/downloads[downloads page]. You can also use
23
+ the officially supported
24
+ https://github.com/elasticsearch/puppet-elasticsearch[Puppet module] or
25
+ https://github.com/elasticsearch/cookbook-elasticsearch[Chef cookbook].
26
26
27
- Loading samples in Sense will allow you to play with live data and searches,
28
- fiddle with parameters and generally make the book much more interactive.
27
+ [[marvel]]
28
+ ==== Installing Marvel
29
29
30
- [source,js]
30
+ http://www.elasticsearch.com/marvel[Marvel] is a management and monitoring
31
+ tool for Elasticsearch which is free for develoment use. It comes with an
32
+ interactive console called Sense which makes it very easy to talk to
33
+ Elasticsearch directly from your browser.
34
+
35
+ Many of the code examples in this book include a ``View in Sense'' link. When
36
+ clicked, it will open up a working example of the code in the Sense console.
37
+ You do not have to install Marvel, but it will make this book much more
38
+ interactive by allowing you to experiment with the code samples on your local
39
+ Elasticsearch cluster.
40
+
41
+ Marvel is available as a plugin. To download and install it, run this command
42
+ in the Elasticsearch directory:
43
+
44
+ [source,sh]
31
45
--------------------------------------------------
32
46
./bin/plugin -i elasticsearch/marvel/latest
47
+ --------------------------------------------------
48
+
49
+ You probably don't want Marvel to monitor your local cluster, so you can
50
+ disable data collection with this command:
51
+
52
+ [source,sh]
53
+ --------------------------------------------------
33
54
echo 'marvel.agent.enabled: false' >> ./config/elasticsearch.yml
34
55
--------------------------------------------------
35
56
57
+ === Running Elasticsearch
58
+
36
59
Elasticsearch is now ready to run. You can start it up in the foreground
37
60
with:
38
61
@@ -58,12 +81,13 @@ You should see a response like this:
58
81
"status": 200,
59
82
"name": "Shrunken Bones",
60
83
"version": {
61
- "number": "1.0 .0",
62
- "lucene_version": "4.6.1 "
84
+ "number": "1.1 .0",
85
+ "lucene_version": "4.7 "
63
86
},
64
87
"tagline": "You Know, for Search"
65
88
}
66
89
--------------------------------------------------
90
+ // SENSE: 010_Intro/10_Info.json
67
91
68
92
This means that your Elasticsearch _cluster_ is up and running, and we can
69
93
start experimenting with it.
0 commit comments