I'm trying to open nodes on two networks.

node1's IP address is 192.168.0.40. I didn't change any config, just run.

$ bin/elasticsearch
[2014-03-09 19:44:44,325][INFO ][node                     ] [Daytripper] 
version[1.0.1], pid[25038], build[5c03844/2014-02-25T15:52:53Z]
[2014-03-09 19:44:44,325][INFO ][node                     ] [Daytripper] 
initializing ...
[2014-03-09 19:44:44,330][INFO ][plugins                  ] [Daytripper] 
loaded [], sites []
[2014-03-09 19:44:46,961][INFO ][node                     ] [Daytripper] 
initialized
[2014-03-09 19:44:46,961][INFO ][node                     ] [Daytripper] 
starting ...
[2014-03-09 19:44:47,075][INFO ][transport                ] [Daytripper] 
bound_address {inet[/192.168.0.40:9300]}, publish_address 
{inet[/192.168.0.40:9300]}
[2014-03-09 19:44:50,118][INFO ][cluster.service          ] [Daytripper] 
new_master 
[Daytripper][ng1JmedNTEanvsnpI_Yw-g][Jongminui-MacBook-Pro.local][inet[/192.168.0.40:9300]],
 
reason: zen-disco-join (elected_as_master)
[2014-03-09 19:44:50,142][INFO ][discovery                ] [Daytripper] 
elasticsearch/ng1JmedNTEanvsnpI_Yw-g
[2014-03-09 19:44:50,156][INFO ][http                     ] [Daytripper] 
bound_address {inet[/192.168.0.40:9200]}, publish_address 
{inet[/192.168.0.40:9200]}
[2014-03-09 19:44:50,170][INFO ][gateway                  ] [Daytripper] 
recovered [0] indices into cluster_state
[2014-03-09 19:44:50,170][INFO ][node                     ] [Daytripper] 
started

Node2 is on the same subnet. IP is 192.168.0.42
I changed config/elasticsearch.yml 

network.bind_host: 192.168.0.40

and run it. but it does not bind.

bin/elasticsearch [2014-03-09 19:57:22,698][WARN ][bootstrap ] jvm uses the 
client vm, make sure to run `java` with the server vm for best performance 
by adding `-server` to the command line [2014-03-09 19:57:22,764][INFO 
][node ] [Uni-Mind] version[1.0.1], pid[2811], 
build[5c03844/2014-02-25T15:52:53Z] [2014-03-09 19:57:22,764][INFO ][node ] 
[Uni-Mind] initializing ... [2014-03-09 19:57:22,767][INFO ][plugins ] 
[Uni-Mind] loaded [], sites [] [2014-03-09 19:57:24,532][INFO ][node ] 
[Uni-Mind] initialized [2014-03-09 19:57:24,532][INFO ][node ] [Uni-Mind] 
starting ... {1.0.1}: Startup Failed ... - BindTransportException[Failed to 
bind to [9300-9400]] ChannelException[Failed to bind to: /192.168.0.40:9400] 
BindException[Cannot assign requested address] <goog_346293252>
http://192.168.0.40:9400/
192.168.0.40

what I expected was if I set  
*# network.bind_host: [master node's IP]*
than it will bind on the same cluster.

Did I miss something?

And one more thing. If there is any example I can make network bind between 
AWS EC2 instances. (in the same region)

Thanks in advance.
 

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/39128129-9467-4673-aba1-a38a7dd776eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to