Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14086

Camel-Elasticsearch-Rest: Support of Elastic rest client 7.3.2 is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.23.4, 2.24.2
    • None
    • None
    • Unknown

    Description

      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]

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            atyurin Andrey Tyurin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: