I am developing my first Java client to access ES but got the NoNodeAvailableException[None of the configured nodes are available: error when try it and the issue is driving me crazy.
I have tried to increase the timeout even to 30 seconds but no success.
I saw on the net that a lot of people have had this problem but got no solution valid for me.
Thanks in advance.
PD: I actually used proper values on mycluster and myservername so this is not the error source.
I am sure that cluster.name remains unchanged.
What do you mean with network.host? Is it a property that I should add on my java code?
BTW: is there any special property that should I set on server to allow my java client that is placed out of the Elasticsearch server could get connected? Any property that should I check?
Must be added on your nodes if you want them to be reachable from outside your server.
No. If you want to secure the transport layer, you need to use Shield / X-Pack (commercial subscription).
Note that in the next future, a REST java client will be released within 5.0. You can use it with elasticsearch 2.x as well.
Then you could add a NGinx layer to secure it. Still I think it would be much easier and with many other features OOTB to use X-Pack.
Well, my advise was to use ELK but somebody else decided to use the AWS Elasticsearch service...
However, I wonder if it is possible to consume data from the Elasticsearch REST service from a Java application. I mean: is there a way to make specific queries to such service? Guide? Examples?
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.