Hello,
I have used it successfully for indexing a single
collection using JDBC river. However, I can't figure out how to index
multiple
collections from mysql.
This works for a single collection:
curl -XPUT 'http://localhost:9200/_river/employee/_meta' -d '{
"type": "jdbc",
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost:3306/projectdb",
"user": "root",
"password": "root",
"sql": "select id, name from employee"
},
"index": {
"name": "employee_idx",
"type": "jdbc"
}
}'
When I add another collection for indexing using the following
command:
curl -XPUT 'http://localhost:9200/_river/jobdetails/_meta' -d '{
"type": "jdbc",
"jdbc": {
"driver": "com.mysql.jdbc.Driver",
"url": "jdbc:mysql://localhost:3306/projectdb",
"user": "root",
"password": "root",
"sql": "select id, name from jobdetails"
},
"index": {
"name": "jobdetails_idx",
"type": "jdbc"
}
}'
Nothing happens and the second index is not created. I am using the latest
version of the river from github on ES 0.90. No Error in logs.
Can any one help me regarding this. I am new in this. I need this immediately.
How do you resolve your issue of using multiple index using river. From your answer I can get that you are using multiple types not multiple index. I want to use multiple index. Can someone please suggest me how to achieve this?
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.