How do I configure multiple nodes on a same machine(single host name)?
I checked the unicast settings but I noticed most of the examples use different host names and keep the port number same(9300), but in my case I need two nodes on a same host. Or do I even need unicast here?
Node 1
cluster.name: MARVEL
node.name: HULK
node.master: true
node.data: true
bootstrap.mlockall: true
network.host: 172.27.214.143
http.port: 9200
transport.tcp.port:9300
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["172.27.214.143", "172.27.214.143:9301"]
Node 2
cluster.name: MARVEL
node.name: ROMANOV
node.master: false
node.data: true
bootstrap.mlockall: true
network.host: 172.27.214.143
http.port: 9201
transport.tcp.port:9301
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["172.27.214.143", "172.27.214.143:9300"]
Is this the right approach?
I am getting this error when I shut down Hulk and Start Romanov
[2016-12-07 15:05:52,624][DEBUG][action.admin.indices.get ] [ROMANOV] no known master node, scheduling a retry
and when I try to access a document on Node 2 that I created on Node 1, I get the below exception
ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]
Thanks,
Raaj