getting following error
java.lang.NoClassDefFoundError: org/apache/http/nio/protocol/HttpAsyncResponseConsumer
for code-
RestClientImpl impl=new RestClientImpl();
impl.restClient= RestClient.builder( new HttpHost("localhost", 9200)).build();
imported these two-
import org.apache.http.HttpHost;
import org.apache.http.impl.nio.client.HttpAsyncClientBuilder;
I won't try to translate that to maven because I can't test it locally at this point but it should be fairly trivial. I'll update the issue I linked above to make it clear that this is also happening for the http client.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.