Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. curl -XPUT 'localhost:9200/_river/jdbc/_meta' -d '{
  2. "type" : "jdbc",
  3. "jdbc": {
  4. "driver" : "com.mysql.jdbc.Driver",
  5. "url" : "jdbc:mysql://localhost:3306/dbname",
  6. "user" : "username",
  7. "password" : "password",
  8. "sql": "select * from table where cat_id=1"
  9. "poll": "24h",
  10. "strategy": "simple",
  11. "scale": 0,
  12. "autocommit": true,
  13. "bulk_size": 5000,
  14. "max_bulk_requests": 30,
  15. "bulk_flush_interval": "5s",
  16. "fetchsize": 100,
  17. "max_rows": 200000,
  18. "max_retries": 3,
  19. "max_retries_wait": "10s",
  20. "locale": "in",
  21. "digesting": true,
  22. }}
  23.  
  24. "sql": "select * from table where module_id>6 AND cat_id != 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement