I am trying to setup elasticsearch cluster with 2 virtual machines. I am not able to configure the cluster transport service with an external interface. I could able to use localhost:9300 as transport service, but I cannot use localhost URL to join the cluster. It is throwing an error when I use external interface name/IP to configure the cluster.
[2017-12-22T06:58:56,979][INFO ][o.e.t.TransportService ] [node-1] publish_address {10.0.1.33:9300}, bound_addresses {10.0.1.33:9300}
[2017-12-22T06:58:56,997][INFO ][o.e.b.BootstrapChecks ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-12-22T06:58:57,002][ERROR][o.e.b.Bootstrap ] [node-1] node validation exception
[2] bootstrap checks failed
My configuration:
cluster.name: ProductionCluster
node.name: node-1
network.host: 10.0.1.33
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.0.1.33","10.0.1.34"]
bootstrap.system_call_filter: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
See Question&Answers more detail:osElasticsearch Version: 6.1