Trying to connect to cloud elastic search, getting below error.
[][generic][T#2]] org.elasticsearch.client.transport : [Jimaine Szardos] failed to get node info for {#transport#-1}{52.43.xx.xxx}{52.43.xx.xxx:9243}, disconnecting...
@Christian_Dahlqvist Thank you for the reply.
I have tried to integrate the same way specified in the documentation, even though I'm the error "ShieldPlugin cannot be resolved to a type" .addPlugin(ShieldPlugin.class).
I tried to include the dependency in the pom.xml.
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>shield</artifactId>
<version>2.1.0</version>
</dependency>
Showing error missing artifact org.elasticsearch.plugin:shield:jar:2.1.0.
Do I missing any thing? Please suggest.
It looks like you are looking ate the wrong version. The Shield plugin is for use with Elasticsearch 2.x. Look at the documentation as well as the example for the correct version.
I have cloned the 2.x branch from git and followed the same instructions to run it from my local by provind remote server details, getting below error.
Failed to execute goal on project found-shield-example: Could not resolve dependencies for project no.found.elasticsearch:found-shield-example:jar:2.1.0-SNAPSHOT: Failed to collect dependencies at org.elasticsearch.plugin:shield:jar:2.1.0: Failed to read artifact descriptor for org.elasticsearch.plugin:shield:jar:2.1.0: Could not transfer artifact org.elasticsearch.plugin:shield:pom:2.1.0 from/to elasticsearch-releases (http://maven.elasticsearch.org/releases): maven.elasticsearch.org: Unknown host maven.elasticsearch.org ->
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.