elasticsearch and tunnel : i can connect to elesticsearch using browser(google_chrome) but not with JAVA api -


my cluster it's not in same network, , there tunnel between pc , server.

i have got error :

org.elasticsearch.client.transport.nonodeavailableexception: none of configured nodes available

if using elasticsearch default multicast mechanism discover nodes in cluster must have cluster nodes located on same subnet (this true till version 2.0).
in order have node discovering other nodes in cluster may configure [elasticsearch home]/config/elasticsearch.yaml field name: discovery.zen.ping.unicast.hosts described [here] (https://www.elastic.co/guide/en/elasticsearch/reference/2.x/modules-network.html):

discovery.zen.ping.unicast.hosts

in order join cluster, node needs know hostname or ip address of @ least of other nodes in cluster. >settting provides initial list of other nodes node try contact. accepts ip addresses or hostnames.

defaults ["127.0.0.1", "[::1]"].

hope helps.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -