-
Notifications
You must be signed in to change notification settings - Fork 706
Step by step recipe for setting up the river with SQL Server
AndrewKL edited this page Dec 16, 2013
·
6 revisions
Suggested reading: SQL Server and Elastic Search Sitting In A Tree...
-
Download ElasticSearch.
-
Download SQL Server JDBC driver from here
-
Download the latest version of elasticsearch-river-jdbc using the plugin downloader. i.e. navigate to the elasticsearch folder on your computer and run...
./bin/plugin -install river-jdbc -url http://bit.ly/1ctvKka
- (optional) Download Sense the chrome plugin. This will make it easy to search, add/remove rivers etc
5)set up the database you want to be indexed. this includes allowing TCP/IP connections
- fire up elastic search using the bat file
./elasticsearch.bat
6)in sense set up the river like this
put _river/scorecards_river/_meta
{
"type":"jdbc",
"jdbc": {
"driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url":"jdbc:sqlserver://localhost:1433;databaseName=ICFV",
"user":"elasticsearch",
"password":"elasticsearch",
"sql":"select * from ScoreCards",
"poll":"30s"
}
}
You should see the river parsing the incoming data from the database in the CL