You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2019/10/18 19:55:00 UTC

[jira] [Commented] (CAMEL-14086) Camel-Elasticsearch-Rest: Support of Elastic rest client 7.3.2 is broken

    [ https://issues.apache.org/jira/browse/CAMEL-14086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16954938#comment-16954938 ] 

Andrea Cosentino commented on CAMEL-14086:
------------------------------------------

The version used in 2.24.x is 6.5.1. if you need to use elastic search 7, you'll need to switch to camel 3

> Camel-Elasticsearch-Rest: Support of Elastic rest client 7.3.2 is broken
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-14086
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14086
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-elasticsearch-rest
>    Affects Versions: 2.23.4, 2.24.2
>            Reporter: Andrey Tyurin
>            Priority: Major
>
> Looks like there is no support of Elastic rest client of 7.3.2 version.
> There is no method setMaxRetryTimeoutMillis in new elastic client library, but it is called from camel-elastic-rest component:
> Caused by: java.lang.NoSuchMethodError: org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder;Caused by: java.lang.NoSuchMethodError: org.elasticsearch.client.RestClientBuilder.setMaxRetryTimeoutMillis(I)Lorg/elasticsearch/client/RestClientBuilder; at org.apache.camel.component.elasticsearch.ElasticsearchProducer.createClient(ElasticsearchProducer.java:274) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.component.elasticsearch.ElasticsearchProducer.startClient(ElasticsearchProducer.java:265) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.component.elasticsearch.ElasticsearchProducer.doStart(ElasticsearchProducer.java:256) ~[camel-elasticsearch-rest-2.24.2.jar!/:2.24.2] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441) ~[camel-core-2.24.2.jar!/:2.24.2] at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:578) ~[camel-core-2.24.2.jar!/:2.24.2]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)