Created
February 25, 2013 10:44
-
-
Save emedina/5029055 to your computer and use it in GitHub Desktop.
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
curl -XPUT http://localhost:9200/_river/test_mysql_river/_meta -d ' | |
{ | |
"type":"jdbc", | |
"jdbc": { | |
"strategy":"simple", | |
"poll":"1m", | |
"driver":"com.mysql.jdbc.Driver", | |
"url" : "jdbc:mysql://localhost:3306/ohim", | |
"user":"root", | |
"password":"", | |
"sql":"select idappli as _id,upperdeno,dtcreated from mark", | |
"fetchsize":100 | |
}, | |
"index":{ | |
"index":"mysql", | |
"type":"mark", | |
"versioning":true, | |
"bulk_size":1000, | |
"acknowledge" : false | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment