Open barshy opened 9 years ago
Hi, Please change value of "elasticsearch.version" in pom.xml from 1.7.0 to 1.7.1 and rebuild the jar. I tested OK with this solution.
Hi @latuannetnam
I changed 2 files
/root/elasticsearch-jdbc-1.7.0.1/lib/jar/META-INF/maven/org.xbib.elasticsearch.importer/elasticsearch-jdbc/pom.xml /root/elasticsearch-jdbc-1.7.0.1/lib/jar/META-INF/maven/org.xbib.elasticsearch.plugin/elasticsearch-support/pom.xml
and rebuilt the jar, but still same error.
Thanks
Hi @barshy, You have to change pom.xml from source project and rebuild it. Here is the instruction:
Thanks @latuannetnam Will try that
I pulled my hair out trying to figure this out. I can confirm that the steps @latuannetnam provided will fix the problem.
Hi @latuannetnam , We are still having problems with the build process? Running elasticsearch from a Docker container, I've tried to build with and without the tests mvn clean package -DskipTests
However failing with a MojoExecutionException
When we take the build plugins for the Javadoc we compile successfully, however when we copy the uberjar to the deployment dir, and run the script (based on the one here) we get an error could not find org.xbib.tools.Runner
I'd grateful of your comment.
Hi, I am using version 1.7.0 with elastic 1.7.1 and receiving node not found error on a local cluster.
Could it be due to version?
This is my script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" bin=${DIR}/../bin lib=${DIR}/../lib
echo ' { "type" : "jdbc", "jdbc" : { "url" : "jdbc:mysql://xx.xx.xx.xx:3306/bdsearch", "user" : "root", "password" : "****", "sql" : "select *, id as _id from ProductImport", "elasticsearch" : { "cluster" : "elasticsearch", "host" : "localhost", "port" : 9300, "autodiscover" : true }, "max_bulk_actions" : 20000, "max_concurrent_bulkrequests" : 10, "index" : "products", "type" : "product" } } ' | java \ -cp "${lib}/" \ -Dlog4j.configurationFile=${bin}/log4j2.xml \ org.xbib.tools.Runner \ org.xbib.tools.JDBCImporter
Thank you