I configured a river for one-time indexing like:
PUT /_river/my_river/_meta
{
"type": "jdbc",
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://192.168.110.180:3306/my_db",
"user": "user",
"password": "password",
"index": "my_idx",
"type": "order",
"sql": "SELECT o.order_id AS _id, o.order_name FROM orders o"
}
}
After performing the PUT, the data is being indexed. When finished, I stop
the server and start it again. The CPU load now is remarkably high. Looking
at /_river/jdbc/*/_state it tells me that last_active_end is null.
So, does the restart of elasicsearch trigger a complete reindexing? If so,
how can I avoid this - e.g by using timestamps?
I configured a river for one-time indexing like:
PUT /_river/my_river/_meta
{
"type": "jdbc",
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://192.168.110.180:3306/my_db",
"user": "user",
"password": "password",
"index": "my_idx",
"type": "order",
"sql": "SELECT o.order_id AS _id, o.order_name FROM orders o"
}
}
After performing the PUT, the data is being indexed. When finished, I stop
the server and start it again. The CPU load now is remarkably high. Looking
at /_river/jdbc/*/_state it tells me that last_active_end is null.
So, does the restart of elasicsearch trigger a complete reindexing? If so,
how can I avoid this - e.g by using timestamps?
I configured a river for one-time indexing like:
PUT /_river/my_river/_meta
{
"type": "jdbc",
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://192.168.110.180:3306/my_db",
"user": "user",
"password": "password",
"index": "my_idx",
"type": "order",
"sql": "SELECT o.order_id AS _id, o.order_name FROM orders o"
}
}
After performing the PUT, the data is being indexed. When finished, I
stop the server and start it again. The CPU load now is remarkably high.
Looking at /_river/jdbc/*/_state it tells me that last_active_end is
null.
So, does the restart of elasicsearch trigger a complete reindexing? If
so, how can I avoid this - e.g by using timestamps?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.