Thanks Thiago for taking a look at my issue. Interestingly, I was able to resolve the issue by downgrading ES from 7.2 to 6.8. It seems the current Spring ElasticSearch with Spring Boot 2.1 does not support ES 7.2.
I will be interested to find out if anybody runs ES 7.2 with Spring Boot 2.1.
I updated my pom.xml by adding the following properties:
<elasticsearch.version>7.2.0</elasticsearch.version>
<beyonder.version>7.0</beyonder.version>
and the following dependencies:
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-high-level-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<!-- this is now needed because of spring parent which forces a 6.4 version -->
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>elasticsearch-rest-client</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>${elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>fr.pilato.elasticsearch</groupId>
<artifactId>elasticsearch-beyonder</artifactId>
<version>${beyonder.version}</version>
</dependency>
Now, I get this error
Archive for required library: 'D:/Users/vpatel/.m2/repository/org/elasticsearch/client/transport/7.2.0/transport-7.2.0.jar' in project 'EmployerWebService' cannot be read or is not a valid ZIP file"
I also deleted all files/folder under "D:/Users/vpatel/.m2/repository/org/elasticsearch/client/transport/". But I still get this error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.