Difference between revisions of "Install Elasticsearch"
From CoGepedia
(Created page with 'Installing and implementing Elasticsearch on a Ubuntu 14.04.1 Follow the apt-install instructions located here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/cur...') |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Installing and | + | Installing and using Elasticsearch on Ubuntu 14.04.1 |
Follow the apt-install instructions located here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html | Follow the apt-install instructions located here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html | ||
− | Run sudo update-rc.d elasticsearch defaults 95 10 | + | Run |
− | and sudo /etc/init.d/elasticsearch start | + | sudo update-rc.d elasticsearch defaults 95 10 |
+ | and | ||
+ | sudo /etc/init.d/elasticsearch start | ||
Next, get Oracle JDK with: | Next, get Oracle JDK with: | ||
+ | sudo add-apt-repository ppa:webupd8team/java | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install oracle-java7-installer | ||
+ | java -version | ||
− | |||
− | |||
− | |||
− | |||
Start testing Elasticsearch by running "curl localhost:9200", you should see something like this: | Start testing Elasticsearch by running "curl localhost:9200", you should see something like this: | ||
− | { | + | { |
− | + | "status" : 200, | |
− | + | "name" : "Aleksander Lukin", | |
− | + | "version" : { | |
− | + | "number" : "1.3.2", | |
− | + | "build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f", | |
− | + | "build_timestamp" : "2014-08-13T14:29:30Z", | |
− | + | "build_snapshot" : false, | |
− | + | "lucene_version" : "4.9" | |
− | + | }, | |
− | + | "tagline" : "You Know, for Search" | |
− | } | + | } |
+ | |||
+ | Enter an example JSON document: | ||
+ | curl -XPUT localhost:9200/lotr/characters/testDoc -d ' | ||
+ | > { | ||
+ | > id: 23, | ||
+ | > name: "test" | ||
+ | > }' |
Latest revision as of 18:57, 19 September 2014
Installing and using Elasticsearch on Ubuntu 14.04.1
Follow the apt-install instructions located here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
Run
sudo update-rc.d elasticsearch defaults 95 10
and
sudo /etc/init.d/elasticsearch start
Next, get Oracle JDK with:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer java -version
Start testing Elasticsearch by running "curl localhost:9200", you should see something like this:
{ "status" : 200, "name" : "Aleksander Lukin", "version" : { "number" : "1.3.2", "build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f", "build_timestamp" : "2014-08-13T14:29:30Z", "build_snapshot" : false, "lucene_version" : "4.9" }, "tagline" : "You Know, for Search" }
Enter an example JSON document:
curl -XPUT localhost:9200/lotr/characters/testDoc -d ' > { > id: 23, > name: "test" > }'