Hi,
My operating system: Linux Centos.
My platform: Elasticsearch 2.1.0.0 marvel plugin
My JDBC River plugin: elasticsearch-jdbc-2.1.0.0
My Mysql database : admin_ihale
My table: tbl_ihale
**I tried. My codes :
PUT /orders/order/1
{}
PUT /_river/my_jdbc_river/_meta
{
"type": "jdbc",
"jdbc": {
"strategy": "simple",
"digesting": true,
"fetchsize": "50",
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost:3306/admin_ihale",
"user": "admin_ihale",
"password": "admin_ihale",
"sql": [
{
"statement": "select * from tbl_ihale where id = ?",
"parameter": [
"1001",
"US"
]
}
],
"index": "orders",
"type": "order",
"schedule": "0 */5 0-23 ? * ** *"
},"index": {
"index": "orders",
"type": "order",
"versioning": true
}}
My error:
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [river], must not start with ''",
"index": "_river"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [river], must not start with ''",
"index": "_river"
},
"status": 400
}
I want to move my data to elasticsearch. How do I data import from mysql to elasticsearch 2.1.0. Can you help me? I already have a JDBC river. Do I have to download the JDBC driver?