-
Star
(142)
You must be signed in to star a gist -
Fork
(68)
You must be signed in to fork a gist
-
-
Save rajraj/1556657 to your computer and use it in GitHub Desktop.
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk.i686 -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share | |
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz | |
mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/ | |
rm -Rf *servicewrapper* | |
sudo /usr/local/share/elasticsearch/bin/service/elasticsearch install | |
sudo /etc/init.d/elasticsearch start | |
#curl http://localhost:9200 |
thanks for share! works like a charm with https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.2.tar.gz repo!
Thanks for this quick and easy script. How can I set HEAP (-Xmx and -Xms) when using the wrapper?
Nevermind, just discovered that JVM level configuration (such as -X parameters) should be set within the elasticsearch.conf file. The ES_HEAP_SIZE environment variable controls the maximum memory allocation for the JVM (set in megabytes). It defaults to 1024.
Nice 😄
Bam! Nice.
Does "server elasticsearch start" on CentOS not work for anyone else?
If you get the error ...
"
WARNING: ElasticSearch may have failed to start.
"
... try to use "servicewrapper" version 0.90. That version is compatible with ElasticSearch "0.19.9" or above.
servicewrapper 0.90 -> https://github.com/elastic/elasticsearch-servicewrapper/tree/0.90
Reference -> http://stackoverflow.com/questions/21724836/elasticsearch-may-have-failed-to-start-tried-multiple-versions
@zmonteca, Not sure if you got it working for you. try "sudo service elastic search start"
Cool, thank you