Note that there are some explanatory texts on larger screens.

plurals
  1. POelasticsearch jdbc river polling--- load data from mysql repeatedly
    primarykey
    data
    text
    <p>When using <a href="https://github.com/jprante/elasticsearch-river-jdbc" rel="nofollow">https://github.com/jprante/elasticsearch-river-jdbc</a> I notice that the following curl statement successfully indexes data the first time. However, the river fails to repeatedly poll the database for updates. </p> <p>To restate, when I run the following, the river successfully connects to MySQL, runs the query successfully, indexes the results, but never runs the query again.</p> <pre><code>curl -XPUT '127.0.0.1:9200/_river/projects_river/_meta' -d '{ "type" : "jdbc", "index" : { "index" : "test_projects", "type" : "project", "bulk_size" : 100, "max_bulk_requests" : 1, "autocommit": true }, "jdbc" : { "driver" : "com.mysql.jdbc.Driver", "poll" : "1m", "strategy" : "simple", "url" : "jdbc:mysql://localhost:3306/test", "user" : "root", "sql" : "SELECT name, updated_at from projects p where p.updated_at &gt; date_sub(now(),interval 1 minute)" } }' </code></pre> <p>Tailing the log, I see:</p> <blockquote> <p>[2013-09-27 16:32:24,482][INFO ][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow] next run, waiting 1m [2013-09-27 16:33:24,488][INFO ]> [org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow] next run, waiting 1m [2013-09-27 16:34:24,494][INFO ]> [org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow] next run, waiting 1m</p> </blockquote> <p>But the index stays empty. Running on a macbook pro with elasticsearch version stable 0.90.2, HEAD and mysql-connector-java-5.1.25-bin.jar in the river pligns directory.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload