Why can't I set master.node?


(brandonmcgrath) #1

I just downloaded the latest ES version off thewebsite and I can't set a node to master/data. If I add the line required, it crashes.

Whats going on here?


(Magnus Bäck) #2

Exactly what are you trying to do? Exactly how does it crash? Presumably it gives an error message of some kind.

Please always be specific when you ask questions.


(brandonmcgrath) #4

I have made this post before and I didnt get solved.
Here:

All I'm trying to do is create a small topology of 1 master node and a data node. Assigning master.node: true to the file causes it to crash.
Am I missing something obvious?

When I run the service:

● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2016-10-06 09:37:50 BST; 1s ago

Log file for the cluster:

[2016-10-05 16:23:45,119][WARN ][bootstrap                ] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2016-10-05 16:23:45,337][INFO ][node                     ] [Batman] version[2.4.1], pid[15630], build[c67dc32/2016-09-27T18:57:55Z]
[2016-10-05 16:23:45,338][INFO ][node                     ] [Batman] initializing ...
[2016-10-05 16:23:46,046][INFO ][plugins                  ] [Batman] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2016-10-05 16:23:46,062][INFO ][env                      ] [Batman] using [1] data paths, mounts [[/ (/dev/mapper/master--node--vg-root)]], net usable_space [9.7gb], net total_space [15.1gb], spins? [possibly], types [ext4]
[2016-10-05 16:23:46,067][INFO ][env                      ] [Batman] heap size [1.9gb], compressed ordinary object pointers [true]
[2016-10-05 16:23:48,445][INFO ][node                     ] [Batman] initialized
[2016-10-05 16:23:48,451][INFO ][node                     ] [Batman] starting ...
[2016-10-05 16:23:48,551][INFO ][transport                ] [Batman] publish_address {192.168.70.202:9300}, bound_addresses {192.168.70.202:9300}
[2016-10-05 16:23:48,561][INFO ][discovery                ] [Batman] Gotham/36ogjJMhS0OHTt2iiDTb0Q
[2016-10-05 16:23:51,729][INFO ][cluster.service          ] [Batman] new_master {Batman}{36ogjJMhS0OHTt2iiDTb0Q}{192.168.70.202}{192.168.70.202:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-10-05 16:23:51,781][INFO ][http                     ] [Batman] publish_address {192.168.70.202:9200}, bound_addresses {192.168.70.202:9200}
[2016-10-05 16:23:51,782][INFO ][node                     ] [Batman] started
[2016-10-05 16:23:51,806][INFO ][gateway                  ] [Batman] recovered [0] indices into cluster_state
[2016-10-05 16:27:10,746][INFO ][node                     ] [Batman] stopping ...
[2016-10-05 16:27:10,759][INFO ][node                     ] [Batman] stopped
[2016-10-05 16:27:10,759][INFO ][node                     ] [Batman] closing ...
[2016-10-05 16:27:10,763][INFO ][node                     ] [Batman] closed




    Elasticsearch.log

    [2016-10-05 16:19:37,398][INFO ][node                     ] [Phantom Eagle] version[2.4.1], pid[15517], build[c67dc32/2016-09-27T18:57:55Z]
    [2016-10-05 16:19:37,399][INFO ][node                     ] [Phantom Eagle] initializing ...
    [2016-10-05 16:19:38,059][INFO ][plugins                  ] [Phantom Eagle] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
    [2016-10-05 16:19:38,077][INFO ][env                      ] [Phantom Eagle] using [1] data paths, mounts [[/ (/dev/mapper/master--node--vg-root)]], net usable_space [9.7gb], net total_space [15.1gb], spins? [possibly], types [ext4]
    [2016-10-05 16:19:38,077][INFO ][env                      ] [Phantom Eagle] heap size [1015.6mb], compressed ordinary object pointers [true]
    [2016-10-05 16:19:40,888][INFO ][node                     ] [Phantom Eagle] initialized
    [2016-10-05 16:19:40,890][INFO ][node                     ] [Phantom Eagle] starting ...
    [2016-10-05 16:19:41,048][INFO ][transport                ] [Phantom Eagle] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
    [2016-10-05 16:19:41,059][INFO ][discovery                ] [Phantom Eagle] elasticsearch/qSngXdAbQKC-TIehAdkRgQ
    [2016-10-05 16:19:44,145][INFO ][cluster.service          ] [Phantom Eagle] new_master {Phantom Eagle}{qSngXdAbQKC-TIehAdkRgQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)

(system) #5