WARNING
In order to avoid any troubles while using Elastic Search, make sure that every node in the cluster uses the same JRE (or JDK) version.
$ type java
java is /usr/bin/java
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
$ wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.tar.gz
$ tar xvf elasticsearch-0.90.10.tar.gz
$ cd elasticsearch-0.90.10
Then test it in "console mode":
$ ./bin/elasticsearch -f
[2014-05-26 22:38:18,032][INFO ][node ] [Lorelei II] version[0.90.10], pid[30583], build[0a5781f/2014-01-10T10:18:37Z]
[2014-05-26 22:38:18,032][INFO ][node ] [Lorelei II] initializing ...
[2014-05-26 22:38:18,036][INFO ][plugins ] [Lorelei II] loaded [], sites []
[2014-05-26 22:38:19,510][INFO ][node ] [Lorelei II] initialized
[2014-05-26 22:38:19,510][INFO ][node ] [Lorelei II] starting ...
[2014-05-26 22:38:19,570][INFO ][transport ] [Lorelei II] bound_address {inet[/0:0:0:0:0:0:0:0%0:9300]}, publish_address {inet[/192.168.1.105:9300]}
[2014-05-26 22:38:22,608][INFO ][cluster.service ] [Lorelei II] new_master [Lorelei II][AI2ywI6KQBOv8y8yC8R2pw][inet[/192.168.1.105:9300]], reason: zen-disco-join (elected_as_master)
[2014-05-26 22:38:22,631][INFO ][discovery ] [Lorelei II] elasticsearch/AI2ywI6KQBOv8y8yC8R2pw
[2014-05-26 22:38:22,643][INFO ][http ] [Lorelei II] bound_address {inet[/0:0:0:0:0:0:0:0%0:9200]}, publish_address {inet[/192.168.1.105:9200]}
[2014-05-26 22:38:22,644][INFO ][node ] [Lorelei II] started
[2014-05-26 22:38:22,656][INFO ][gateway ] [Lorelei II] recovered [0] indices into cluster_state
Hit CLTR+C to quit.
################################### Cluster ###################################
# Cluster name identifies your cluster for auto-discovery. If you're running
# multiple clusters on the same network, make sure you're using unique names.
#
cluster.name: wse_cluster
...
# Set the number of replicas (additional copies) of an index (1 by default):
#
index.number_of_replicas: 1
> The "attachment" plugin (mandatory)
$ elasticsearch-0.90.10
$ bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.9.0
> The "Head" plugin (optional)
$ cd elasticsearch-0.90.10
$ bin/plugin -install mobz/elasticsearch-head
> List the installed plugins:
$ ./bin/plugin --list
Installed plugins:
- head
- mapper-attachments
$ cp -rf elasticsearch-0.90.10 es1
$ cp -rf elasticsearch-0.90.10 es2
$ cd es1
$ ./bin/elasticsearch
$ cd ../es2
$ ./bin/elasticsearch
Then, follow the standard install procedure using the wizzard.
Step 1/4
Step 2/4
Step 3/4
Step 4/4
c:\> werl
/usr/local/lib/erlang
$ export PATH=$PATH:/usr/local/lib/erlang/bin
/etc/profile.local
/etc/bash.bashrc.local
$HOME/.profile
$HOME/.bashrc
$ erl
/usr/local/lib/erlang
$ export PATH=$PATH:/usr/local/lib/erlang/bin
$ erl
Other Operating Systems
Drop us a line if interested to use WSE on FreeBSD, SmartOS, etc. We’ll provide you with a detailed instructions and binaries.
-module(hello).
-export([webarch/0]).
webarch() ->
io:format("WSE says: Hello Web Archiving!~n"),
halt().
c:\> erlc hello.erl
c:\> erl -noshell -s hello webarch
WSE says: Hello Web Archiving!
Learn You Some Erlang (LYSE)
LYSE website provides one of the best, free, complete, and well presented Erlang tutorials to quickly get started.