I'm trying to run two ES nodes on a single cluster on the same server.
I have two config files located in separate directories:
elasticsearch-2.3.3/config/node1
elasticsearch-2.3.3/config/node2
Each node-# folder contains a config file.
When I startup each node it is not taking the hostname/node name values in the config file. It is defaulting to the Marvel comic name for each node. It does appear to take the port #'s I'm assigning for transport and listening.
/opt/ElasticSearch/elasticsearch-2.3.3/bin/elasticsearch -Des.path.conf=/opt/ElasticSearch/elasticsearch-2.3.3/config/node-1
/opt/ElasticSearch/elasticsearch-2.3.3/bin/elasticsearch -Des.path.conf=/opt/ElasticSearch/elasticsearch-2.3.3/config/node-2
starting up node-1 results:
[2016-06-29 14:53:32,071][WARN ][bootstrap ] unable to install syscall filter: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
[2016-06-29 14:53:32,192][INFO ][node ] [Psyche] version[2.3.3], pid[3030], build[218bdf1/2016-05-17T15:40:04Z]
[2016-06-29 14:53:32,192][INFO ][node ] [Psyche] initializing ...
[2016-06-29 14:53:32,644][INFO ][plugins ] [Psyche] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2016-06-29 14:53:32,663][INFO ][env ] [Psyche] using [1] data paths, mounts [[/opt/ElasticSearch (/dev/mapper/1t-clear)]], net usable_space [955.5gb], net total_space [1006.8gb], spins? [possibly], types [ext4]
[2016-06-29 14:53:32,664][INFO ][env ] [Psyche] heap size [989.8mb], compressed ordinary object pointers [true]
[2016-06-29 14:53:32,664][WARN ][env ] [Psyche] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]
[2016-06-29 14:53:34,127][INFO ][node ] [Psyche] initialized
[2016-06-29 14:53:34,127][INFO ][node ] [Psyche] starting ...
[2016-06-29 14:53:34,185][INFO ][transport ] [Psyche] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2016-06-29 14:53:34,189][INFO ][discovery ] [Psyche] elasticsearch/dfmNmn1xTiumZ_GdnJiYAw
[2016-06-29 14:53:37,248][INFO ][cluster.service ] [Psyche] new_master {Psyche}{dfmNmn1xTiumZ_GdnJiYAw}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-06-29 14:53:37,284][INFO ][http ] [Psyche] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2016-06-29 14:53:37,284][INFO ][node ] [Psyche] started
[2016-06-29 14:53:37,341][INFO ][gateway ] [Psyche] recovered [0] indices into cluster_state
^C^C[2016-06-29 14:53:43,766][INFO ][node ] [Psyche] stopping ...
[2016-06-29 14:53:43,783][INFO ][node ] [Psyche] stopped
[2016-06-29 14:53:43,783][INFO ][node ] [Psyche] closing ...
[2016-06-29 14:53:43,791][INFO ][node ] [Psyche] closed
If I run a single elastic command with the default path for config, data, logs etc. it starts up with the correct node name, directories and I can hit the 9200 port via browser.
Node-1 config values:
cluster.name: ES_US-East_Cluster_Dev-1
node.name: "ES__US-East_Node-1_Dev-1"
network.host: els-mstr-1
network.bind_host: 10.x.x.x
network.publish_host: 10.x.x.x
http.port: 9200
transport.tcp.port: 9300