Andrey Tyurin created CAMEL-14086:
-------------------------------------

             Summary: 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.24.2, 2.23.4
            Reporter: Andrey Tyurin


Looks like there is not 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)

Reply via email to