2013-08-28 19:24:34 -04:00
|
|
|
[[setup]]
|
|
|
|
= Setup
|
|
|
|
|
|
|
|
[partintro]
|
|
|
|
--
|
|
|
|
This section includes information on how to setup *elasticsearch* and
|
|
|
|
get it running. If you haven't already, http://www.elasticsearch.org/download[download] it, and
|
|
|
|
then check the <<setup-installation,installation>> docs.
|
|
|
|
|
2014-02-06 11:01:58 -05:00
|
|
|
NOTE: Elasticsearch can also be installed from our repositories using `apt` or `yum`.
|
|
|
|
See <<setup-repositories>>.
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
[[setup-installation]]
|
|
|
|
[float]
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
After link:/download[downloading] the latest release and extracting it,
|
|
|
|
*elasticsearch* can be started using:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
|
|
|
$ bin/elasticsearch
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2013-12-15 14:29:11 -05:00
|
|
|
Under *nix system, the command will start the process in the foreground.
|
|
|
|
To run it in the background, add the `-d` switch to it:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2013-12-15 14:29:11 -05:00
|
|
|
$ bin/elasticsearch -d
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
.*NIX
|
|
|
|
*************************************************************************
|
|
|
|
There are added features when using the `elasticsearch` shell script.
|
|
|
|
The first, which was explained earlier, is the ability to easily run the
|
|
|
|
process either in the foreground or the background.
|
|
|
|
|
2013-12-16 05:30:10 -05:00
|
|
|
Another feature is the ability to pass `-X` and `-D` or getopt long style
|
|
|
|
configuration parameters directly to the script. When set, all override
|
|
|
|
anything set using either `JAVA_OPTS` or `ES_JAVA_OPTS`. For example:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
--------------------------------------------------
|
2014-01-17 05:44:30 -05:00
|
|
|
$ bin/elasticsearch -Xmx2g -Xms2g -Des.index.store.type=memory --node.name=my-node
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
*************************************************************************
|
2014-09-11 05:13:19 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
[[jvm-version]]
|
2014-12-30 11:40:19 -05:00
|
|
|
== Java (JVM) version
|
2014-09-11 05:13:19 -04:00
|
|
|
|
|
|
|
Elasticsearch is built using Java, and requires at least
|
|
|
|
http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java 7] in
|
2014-12-30 11:40:19 -05:00
|
|
|
order to run. Only Oracle's Java and the OpenJDK are supported. The same JVM
|
|
|
|
version should be used on all Elasticsearch nodes and clients.
|
2014-09-11 05:13:19 -04:00
|
|
|
|
|
|
|
We recommend installing the *Java 8 update 20 or later*, or *Java 7 update 55
|
|
|
|
or later*. Previous versions of Java 7 are known to have bugs that can cause
|
|
|
|
index corruption and data loss.
|
|
|
|
|
|
|
|
The version of Java to use can be configured by setting the `JAVA_HOME`
|
|
|
|
environment variable.
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
--
|
|
|
|
|
|
|
|
include::setup/configuration.asciidoc[]
|
|
|
|
|
|
|
|
include::setup/as-a-service.asciidoc[]
|
|
|
|
|
2013-09-23 11:24:31 -04:00
|
|
|
include::setup/as-a-service-win.asciidoc[]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
include::setup/dir-layout.asciidoc[]
|
|
|
|
|
2013-12-19 09:54:40 -05:00
|
|
|
include::setup/repositories.asciidoc[]
|
2014-04-01 12:28:08 -04:00
|
|
|
|
|
|
|
include::setup/upgrade.asciidoc[]
|