NoSuchMethodError: org.elasticsearch.action.support.IndicesOptions.ignoreThrottled()Z


            org.elasticsearch.client
            elasticsearch-rest-high-level-client
            7.2.0

public static void main(String[] agrs) throws IOException {
        RestHighLevelClient client = new RestHighLevelClient(
                RestClient.builder(
                        new HttpHost("localhost", 9200, "http")));
        GetIndexRequest request = new GetIndexRequest("twitter");
        request.local(false);
        request.humanReadable(true);
        request.includeDefaults(false);
        boolean exists = client.indices().exists(request, RequestOptions.DEFAULT);
        System.out.println(exists);
    }


잘못 보고하다
Exception in thread "main" java.lang.NoSuchMethodError: org.elasticsearch.action.support.IndicesOptions.ignoreThrottled()Z
	at org.elasticsearch.client.RequestConverters$Params.withIndicesOptions(RequestConverters.java:942)
	at org.elasticsearch.client.IndicesRequestConverters.indicesExist(IndicesRequestConverters.java:467)
	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1444)
	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1433)
	at org.elasticsearch.client.IndicesClient.exists(IndicesClient.java:782)
	at com.example.restclient.IndexDemo.main(IndexDemo.java:34)

7.0.0 버전 및 7.1.1 버전으로 내려갈 때 프로그램이 정상적으로 실행되고 오류 메시지가 없습니다.초보적인 추측으로는 7.2.0 버전의 버그일 것이다.

좋은 웹페이지 즐겨찾기