hcaupert
(hcaupert)
January 19, 2021, 10:19am
1
Hi,
I am using a 7.3.1 cluster. Using Spring Data Elastic in Spring Boot 2.3 brings a client in version 7.6.2. As seen on this forum I add the version to match my cluster in my pom.xml
:
<properties>
<elasticsearch.version>7.6.2<elasticsearch.version>
</properties>
But now i got this warning on startup :
Version mismatch in between Elasticsearch Clients build/use: 7.6.2 - 7.3.1
I don't know how to deal with it, mvn dependency tree does not show any kind of 7.6.1 version...
Thank you for your help !
dadoonet
(David Pilato)
January 19, 2021, 11:01am
2
Welcome!
What is the output of this?
mvn dependency:tree
hcaupert
(hcaupert)
January 19, 2021, 11:06am
3
Here it is:
[INFO] fr.test:esversion:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.3.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.6.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.11.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.11.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] +- org.springframework.data:spring-data-elasticsearch:jar:4.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.2.11.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.2.11.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.2.11.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.11.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:5.2.11.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.3.5.RELEASE:compile
[INFO] | +- org.elasticsearch.client:transport:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch.plugin:reindex-client:jar:7.3.1:compile
[INFO] | | | \- org.elasticsearch:elasticsearch-ssl-config:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch.plugin:lang-mustache-client:jar:7.3.1:compile
[INFO] | | | \- com.github.spullara.mustache.java:compiler:jar:0.9.3:compile
[INFO] | | +- org.elasticsearch.plugin:percolator-client:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch.plugin:parent-join-client:jar:7.3.1:compile
[INFO] | | \- org.elasticsearch.plugin:rank-eval-client:jar:7.3.1:compile
[INFO] | +- org.elasticsearch.plugin:transport-netty4-client:jar:7.3.1:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.54.Final:compile
[INFO] | | +- io.netty:netty-codec:jar:4.1.54.Final:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.54.Final:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.54.Final:compile
[INFO] | | +- io.netty:netty-handler:jar:4.1.54.Final:compile
[INFO] | | +- io.netty:netty-resolver:jar:4.1.54.Final:compile
[INFO] | | \- io.netty:netty-transport:jar:4.1.54.Final:compile
[INFO] | +- org.elasticsearch.client:elasticsearch-rest-high-level-client:jar:7.3.1:compile
[INFO] | | +- org.elasticsearch.client:elasticsearch-rest-client:jar:7.3.1:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | | | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile
[INFO] | | | +- org.apache.httpcomponents:httpcore-nio:jar:4.4.13:compile
[INFO] | | | \- commons-codec:commons-codec:jar:1.14:compile
[INFO] | | \- org.elasticsearch.plugin:aggs-matrix-stats-client:jar:7.3.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] \- org.elasticsearch:elasticsearch:jar:7.3.1:compile
[INFO] +- org.elasticsearch:elasticsearch-core:jar:7.3.1:compile
[INFO] +- org.elasticsearch:elasticsearch-secure-sm:jar:7.3.1:compile
[INFO] +- org.elasticsearch:elasticsearch-x-content:jar:7.3.1:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.11.3:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.3:compile
[INFO] | \- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.11.3:compile
[INFO] +- org.elasticsearch:elasticsearch-geo:jar:7.3.1:compile
[INFO] +- org.apache.lucene:lucene-core:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-backward-codecs:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-grouping:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-highlighter:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-join:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-memory:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-misc:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-queries:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-queryparser:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-sandbox:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-spatial:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-spatial-extras:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-spatial3d:jar:8.1.0:compile
[INFO] +- org.apache.lucene:lucene-suggest:jar:8.1.0:compile
[INFO] +- org.elasticsearch:elasticsearch-cli:jar:7.3.1:compile
[INFO] | \- net.sf.jopt-simple:jopt-simple:jar:5.0.2:compile
[INFO] +- com.carrotsearch:hppc:jar:0.8.1:compile
[INFO] +- joda-time:joda-time:jar:2.10.2:compile
[INFO] +- com.tdunning:t-digest:jar:3.2:compile
[INFO] +- org.hdrhistogram:HdrHistogram:jar:2.1.9:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] \- org.elasticsearch:jna:jar:4.5.1:compile
You can use this sample project : https://github.com/HCaupert/esversion
dadoonet
(David Pilato)
January 20, 2021, 2:44pm
4
I don't understand. The dependency tree shows a 7.3.1 version everywhere.
Could you share the full stacktrace of this error?
system
(system)
Closed
February 17, 2021, 2:45pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.