Fail to join cluster for VMs created from virtual box


#1

Just installed ES 2.0.0 on linux VMs(Ubuntu/Mint) created from VirtualBox, and setup network as bridge
added FQDN to /etc/hosts and disabled firewall. I can ping/ssh to the IPs and FQDNs.
updated yml file on all VMs(xxx.14, xxx.15, xxx.16) e.g. on xxx.14

cluster.name: rhytone
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.1.15", "192.168.1.16"]

all are with the same cluster.name

curl -XGET 'http://localhost:9200/_nodes'
{"cluster_name":"rhytone","nodes":{"sowY7BiUT_q2gHFtCJulZw":{"name":"mike14","transport_address":"127.0.0.1:9300","host":"127.0.0.1","ip":"127.0.0.1","version":"2.0.0","build":"de54438","http_address":"127.0.0.1:9200","settings":{"pidfile":"/var/run/elasticsearch/elasticsearch.pid","cluster":{"name":"rhytone"},"node":{"name":"mike14"},"path":{"conf":"/etc/elasticsearch","data":"/var/lib/elasticsearch","logs":"/var/log/elasticsearch","home":"/usr/share/elasticsearch"},"discovery":{"zen":{"minimum_master_nodes":"2","ping":{"multicast":{"enabled":"false"},"unicast":{"hosts":["192.168.1.15","192.168.1.16"]}}}},"name":"mike14","client":{"type":"node"},"foreground":"false","config":{"ignore_system_properties":"true"}},"os":{"refresh_interval_in_millis":1000,"name":"Linux","arch":"amd64","version":"3.19.0-25-generic","available_processors":1},"process":{"refresh_interval_in_millis":1000,"id":2625,"mlockall":false},"jvm":{"pid":2625,"version":"1.8.0_66","vm_name":"Java HotSpot(TM) 64-Bit Server VM","vm_version":"25.66-b17","vm_vendor":"Oracle Corporation","start_time_in_millis":1446556823529,"mem":{"heap_init_in_bytes":268435456,"heap_max_in_bytes":1065025536,"non_heap_init_in_bytes":2555904,"non_heap_max_in_bytes":0,"direct_max_in_bytes":1065025536},"gc_collectors":["ParNew","ConcurrentMarkSweep"],"memory_pools":["Code Cache","Metaspace","Compressed Class Space","Par Eden Space","Par Survivor Space","CMS Old Gen"]},"thread_pool":{"percolate":{"type":"fixed","min":1,"max":1,"queue_size":1000},"fetch_shard_started":{"type":"scaling","min":1,"max":2,"keep_alive":"5m","queue_size":-1},"listener":{"type":"fixed","min":1,"max":1,"queue_size":-1},"index":{"type":"fixed","min":1,"max":1,"queue_size":200},"refresh":{"type":"scaling","min":1,"max":1,"keep_alive":"5m","queue_size":-1},"suggest":{"type":"fixed","min":1,"max":1,"queue_size":1000},"generic":{"type":"cached","keep_alive":"30s","queue_size":-1},"warmer":{"type":"scaling","min":1,"max":1,"keep_alive":"5m","queue_size":-1},"search":{"type":"fixed","min":2,"max":2,"queue_size":1000},"flush":{"type":"scaling","min":1,"max":1,"keep_alive":"5m","queue_size":-1},"optimize":{"type":"fixed","min":1,"max":1,"queue_size":-1},"fetch_shard_store":{"type":"scaling","min":1,"max":2,"keep_alive":"5m","queue_size":-1},"management":{"type":"scaling","min":1,"max":5,"keep_alive":"5m","queue_size":-1},"get":{"type":"fixed","min":1,"max":1,"queue_size":1000},"bulk":{"type":"fixed","min":1,"max":1,"queue_size":50},"snapshot":{"type":"scaling","min":1,"max":1,"keep_alive":"5m","queue_size":-1}},"transport":{"bound_address":["127.0.0.1:9300","[::1]:9300"],"publish_address":"127.0.0.1:9300","profiles":{}},"http":{"bound_address":["127.0.0.1:9200","[::1]:9200"],"publish_address":"127.0.0.1:9200","max_content_length_in_bytes":104857600},"plugins":[]}}}

Do I miss something?

Thanks,

Mike


(Mark Walkom) #2

Probably, see https://www.elastic.co/guide/en/elasticsearch/reference/current/_network_changes.html#_bind_to_localhost


#3

yep, it works after adding "network.host: 192.168.1.1x" to the yml file on all hosts. I added only to the first one previously:(

Thanks a lot


(system) #4