Created
April 10, 2014 16:37
-
-
Save anatolyg/10400335 to your computer and use it in GitHub Desktop.
My local Elasticsearch test instance
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.deb | |
sudo dpkg -i elasticsearch-1.1.0.deb | |
# Install useful plugins | |
sudo /usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head | |
sudo /usr/share/elasticsearch/bin/plugin --install jettro/elasticsearch-gui | |
sudo /usr/share/elasticsearch/bin/plugin -install polyfractal/elasticsearch-inquisitor | |
sudo /usr/share/elasticsearch/bin/plugin -install OlegKunitsyn/elasticsearch-browser | |
sudo /usr/share/elasticsearch/bin/plugin -install royrusso/elasticsearch-HQ | |
sudo /usr/share/elasticsearch/bin/plugin -install de.spinscale/elasticsearch-plugin-suggest/1.0.1-2.0.0 | |
sudo /usr/share/elasticsearch/bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.0 | |
sudo /usr/share/elasticsearch/bin/plugin --install river-jdbc --url http://bit.ly/1iadfnF | |
sudo /usr/share/elasticsearch/bin/plugin -install lukas-vlcek/bigdesk/2.4.0 | |
# download postgres driver, install into es | |
wget http://jdbc.postgresql.org/download/postgresql-9.3-1101.jdbc4.jar | |
sudo mv postgresql-9.3-1101.jdbc4.jar /usr/share/elasticsearch/plugins/river-jdbc/ | |
# Start ES | |
sudo service elasticsearch start | |
#curl http://localhost:9200 |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.network "private_network", ip: "10.0.0.11" | |
config.ssh.forward_agent = true | |
# config.vm.synced_folder "../data", "/vagrant_data" | |
config.vm.provider "virtualbox" do |vb| | |
# # Don't boot with headless mode | |
# vb.gui = true | |
# | |
# # Use VBoxManage to customize the VM. For example to change memory: | |
vb.customize ["modifyvm", :id, "--memory", "512"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment