If i Connect with Transport Client returned error is:
Exception in thread "main" java.lang.VerifyError: class org.elasticsearch.shield.ShieldPlugin overrides final method onModule.(Lorg/elasticsearch/action/ActionModule;)V
If try to connect with Rest Client then:1. java.io.IOException: An existing connection was forcibly closed by the remote host
or 2. No nodesavailable exception
My Elasticsearch is in Elastic Cloud --> google cloud and id is 488098
The error message that you included in your original post lists that class. It must have come from somewhere, and it's not part of the 5.x transport client.
You need to work out where it's coming from, because it looks like the source of your problems.
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.