I've been following the directions for the jdbc river plugin but keep
running into issues.
curl -XPUT 'localhost:9200/_river/my_jdbc_river/_meta' -d '{
"type" : "jdbc",
"jdbc" : {
"driver" : "com.mysql.jdbc.Driver",
"url" : "jdbc:mysql://localhost:8889/newpt",
"user" : "root",
"password" : "",
"sql" : "select * from pt_products"
},
"index" : {
"index" : "jdbc",
"type" : "jdbc"
}
}'
{"ok":true,"_index":"_river","_type":"my_jdbc_river","_id":"_meta","_version":4}
But nothing shows up in the server log. When running
curl -XGET 'http://localhost:9200/_river/my_jdbc_river/_status?pretty=true'
I get the following error.
{
"_index" : "_river",
"_type" : "my_jdbc_river",
"_id" : "_status",
"_version" : 1,
"exists" : true, "_source" : {"error":"NoClassSettingsException[Failed to
load class with value [jdbc]]; nested: ClassNotFoundException[jdbc];
","node":{"id":"8VmwpOlgQA-Bf2ey0L13lg","name":"Deathlok","transport_address":"inet[/192.168.1.102:9302]"}}
}
I decided to delete the plugin and reinstall everything. Now when I run
the status command I get this.
→ curl -XGET
'http://localhost:9200/_river/my_jdbc_river/_status?pretty=true'
{
"_index" : "_river",
"_type" : "my_jdbc_river",
"_id" : "_status",
"exists" : false
}
Still nothing in the console. Very frustrated. Trying to test this out
coming from Solr.
--