Last active
January 2, 2016 12:29
-
-
Save dhrrgn/8304051 to your computer and use it in GitHub Desktop.
ElasticSearch Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cluster.name: "my-es" | |
index.number_of_shards: 5 | |
index.number_of_replicas: 1 | |
cloud: | |
aws: | |
region: us-east-1 | |
access_key: <key here> | |
secret_key: <secret here> | |
discovery: | |
type: ec2 | |
gateway: | |
type: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install unzip | |
sudo apt-get install openjdk-7-jre | |
# Main ES Install | |
cd ~ | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.zip | |
sudo unzip elasticsearch-0.90.9.zip -d /usr/local/elasticsearch | |
cd /usr/local/elasticsearch/elasticsearch-0.90.9/ | |
# AWS Plugin | |
sudo bin/plugin -install elasticsearch/elasticsearch-cloud-aws/1.16.0 | |
# Write config (including AWS info) to config/elasticsearch.yml | |
# Install Service Wrapper | |
cd ~ | |
wget https://github.com/elasticsearch/elasticsearch-servicewrapper/zipball/master | |
sudo unzip master | |
sudo mv elasticsearch-elasticsearch-servicewrapper-*/service/ /usr/local/elasticsearch/elasticsearch-0.90.9/bin | |
cd /usr/local/elasticsearch/elasticsearch-0.90.9/ | |
# In bin/service/elasticsearch.conf | |
# Set the following: | |
# set.default.ES_HOME=/usr/local/elasticsearch/elasticsearch-0.19.0 | |
sudo bin/service/elasticsearch64 install | |
sudo service elasticsearch start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes: