Open nheinbaugh opened 9 years ago
It should work if you add a definition for the Elasticsearch cluster to connect to
{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://1.1.1.1:3600/db_name,
"user" : "B",
"password" : "passwordHere",
"sql" : "select * from VIEWNAME limit 1000",
"index" : "importer",
"type" : "test",
"elasticsearch" : {
"cluster" : "elasticsearch",
"host" : "localhost",
"port" : 9300
}
}
}
There is a glitch in the current version that skips over the host parameter, so this may be the reason, I'm not sure.
I have created JDBC importer 1.7.3.0 for ES 1.7.3, maybe you can give it a try?
Hey guys,
I am trying to move data from a single table in a MySQL database into ES, and I just can't make it work. I've followed your tutorials and checked the forums to no avail. Here is the current setup:
Here is my bash script that should kick it all off
For starters I was getting a bad substitution error on the bash so I just got rid of the local vars and hardcoded the file location as needed in the java part (is that the problem?)
In the log file I am getting this:
It isn't timing out, or giving me any indication that it isn't connecting properly. I verified that I have the correct version of ES for the JDBC that we are using. I updated the jar file in the /lib folder to contain the following:
derby-10.11.1.1.jar
h2-1.4.181.jar
jdbc-driver-csv-1.0.0.jar
mysql-connector-java-5.1.33.jar
postgresql-9.3-1102-jdbc41.jar elasticsearch-jdbc-1.7.2.1-uberjar.jar
hsqldb-2.3.2.jar
mysql-connector-java-5.1.32.jar
mysql-connector-java-debian.jar
What should my next steps be? I can't find anything wrong in the setup thus far.
Thank you for your assistance.
Nick