Skip to content

Instantly share code, notes, and snippets.

@emedina
Created February 25, 2013 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emedina/5029055 to your computer and use it in GitHub Desktop.
Save emedina/5029055 to your computer and use it in GitHub Desktop.
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