3
curl -XPUT localhost:9200/_river/my_jdbc_river/_meta -d 
           "{
                "type" : "jdbc",
                      "jdbc" : 
                       {
                        "driver" : "com.mysql.jdbc.Driver",
                        "url" : "jdbc:mysql://localhost:3306/springtest",
                        "user" : "root",
                        "password" : "root",
                        "sql" : "select * from register",
                        "index" : "my_register", 
                        "type" : "my_register_type" 
                       }
           }"

the connection successfull but error tab will generated like

error: NoClassSettingsException[Failed to load class with value [jdbc]]; nested:   
ClassNotFoundException[jdbc]; 
4
  • please see if my new try for connection this is also gave me same error bro Commented Jul 7, 2014 at 7:04
  • did you perform all the steps mentioned there? github.com/jprante/elasticsearch-river-jdbc/wiki/Quickstart Commented Jul 7, 2014 at 7:11
  • How many nodes do you have? Did you do step 5 on all nodes? Commented Jul 7, 2014 at 8:30
  • yess i done all step from download Download MySQL JDBC driver to -XPUT Commented Jul 7, 2014 at 8:33

1 Answer 1

0

I presume you need to add

"driver": "com.mysql.jdbc.Driver"

to your jdbc definition.

Also, check that you have done all the steps mentioned there: https://github.com/jprante/elasticsearch-river-jdbc/wiki/Quickstart

(especially pp.4 and 5, related to registering MySQL driver with your ElasticSearch instance)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.