Skip to content

Instantly share code, notes, and snippets.

@smali-kazmi
Created September 15, 2014 17:45
Show Gist options
  • Save smali-kazmi/b6e8a59fa5a92290c1bc to your computer and use it in GitHub Desktop.
Save smali-kazmi/b6e8a59fa5a92290c1bc to your computer and use it in GitHub Desktop.
Install Elasticsearch plugin (elasticsearch-river-jdbc) for Ubuntu on Vagrant
cd /usr/share/elasticsearch
sudo ./bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.1.0.2/elasticsearch-river-jdbc-1.1.0.2-plugin.zip
sudo curl -o mysql-connector-java-5.1.28.zip -L 'http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.28.zip/from/http://cdn.mysql.com/'
sudo unzip mysql-connector-java-5.1.28.zip -d mysql-connector
sudo cp mysql-connector/mysql-connector-java-5.1.28/mysql-connector-java-5.1.28-bin.jar ./plugins/jdbc/
sudo /etc/init.d/elasticsearch restart
#Create new index using example commands on https://github.com/jprante/elasticsearch-river-jdbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment