elasticsear报错:NoSuchMethodError: org.elasticsearch.action.support.master.AcknowledgedResponse

在用使用elasticsear java API的时候报错:java.lang.NoSuchMethodError: org.elasticsearch.action.support.master.AcknowledgedResponse
这是我的elasticsear 引入的依赖:

 <dependency>
	 <groupId>org.elasticsearch.client</groupId>
	     <artifactId>transport</artifactId>
	     <version>7.3.0</version>
	 </dependency>
	 <dependency>
	     <groupId>org.elasticsearch.client</groupId>
	     <artifactId>elasticsearch-rest-high-level-client</artifactId>
     <version>7.3.0</version>
 </dependency>

解决方案:

  • 往pom.xml文件添加:
<properties>
  <elasticsearch.version>7.3.0<elasticsearch.version>
</properties>

elasticsear报错:NoSuchMethodError: org.elasticsearch.action.support.master.AcknowledgedResponse_第1张图片

  • 参考:https://discuss.elastic.co/t/nosuchmethoderror-for-org-elasticsearch-action-support-indicesoptions-ignorethrottled/195440

你可能感兴趣的:(ElasticSearch)