[Upgrade from 7.6.2 to 7.17.15] Cannot find symbol import org.elasticsearch.client.RestClientBuilder;

Hello, I am trying to upgrade the elasticsearch for java from 7.6.2 to 7.16.15, but the following classes seem to be deprecated:


.......Producer.java:15: error: cannot find symbol
import org.elasticsearch.client.RestClient;
                               ^
  symbol:   class RestClient
  location: package org.elasticsearch.client
.......Producer.java:16: error: cannot find symbol
import org.elasticsearch.client.RestClientBuilder;
                               ^
  symbol:   class RestClientBuilder
  location: package org.elasticsearch.client
.......Producer.java:17: error: cannot find symbol
import org.elasticsearch.client.RestHighLevelClient;
                               ^
  symbol:   class RestHighLevelClient
  location: package org.elasticsearch.client
.......Producer.java:48: error: cannot find symbol
import org.elasticsearch.common.unit.TimeValue;
                                    ^
  symbol:   class TimeValue
  location: package org.elasticsearch.common.unit
.......Producer.java:51: error: cannot find symbol
import org.elasticsearch.client.RestClient;

Is there a changelog or a guide mentioning the packages for these classes?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.