ElasticSearch Cluster Setup Issue with Master


(Prasad) #1

Hi Guys,

I am getting the below error while trying to create an elasticsearch cluster:

systemctl status elasticsearch
elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-10-10 09:40:59 EDT; 18h ago
Docs: http://www.elastic.co
Main PID: 32421 (code=exited, status=1/FAILURE)

Please help me out to fix?

Thanks, Prasad


(Mark Walkom) #2

What do the Elasticsearch logs show?


(Prasad) #3

I see an empty logging.xml file in /etc/elasticsearch/ folder. Do we have any other location to view the log info?


(Prasad) #4

I am getting the issue only on master node but the other 2 slave nodes are running fine.

elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: failed (Result: exit-code) since Tue 2016-10-11 05:21:36 EDT; 10s ago
Docs: http://www.elastic.co
Main PID: 20966 (code=exited, status=1/FAILURE)

Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.common.settings.loader.YamlSettingsLoader....:46)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.common.settings.Settings$Builder.loadFromS...080)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.common.settings.Settings$Builder.loadFromP...067)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.node.internal.InternalSettingsPreparer.pre...:88)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.bootstrap.Bootstrap.initialSettings(Bootst...202)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:241)
Oct 11 05:21:36 x.com elasticsearch[20966]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch...:35)
Oct 11 05:21:36 x.com elasticsearch[20966]: Refer to the log for complete error details.
Oct 11 05:21:36 x.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Oct 11 05:21:36 x.com systemd[1]: Unit elasticsearch.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.


(Mark Walkom) #5

There is no such thing as a slave node in ES.

/etc/elasticsearch is for config, look under /var/log


(Prasad) #6

Actually I am creating a cluster on 3 nodes, and 1 node as master, 1 node as data node and another as client node,

i followed the below link:
http://www.tuxfixer.com/install-and-configure-elasticsearch-cluster-on-centos-7-nodes/

So all is fine except the master node when i try to run the below command is failing:
systemctl status elasticsearch

Error:
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-10-12 02:01:34 EDT; 424ms ago
Docs: http://www.elastic.co
Main PID: 22310 (code=exited, status=1/FAILURE)

Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: at org.elasti...
Oct 12 02:01:34 c.com elasticsearch[22310]: Refer to the ...
Oct 12 02:01:34 c.com systemd[1]: elasticsearch.service: ...
Oct 12 02:01:34 c.com systemd[1]: Unit elasticsearch.serv...
Hint: Some lines were ellipsized, use -l to show in full.

Please help me to fix this issue?

Thanks, Prasad


(system) #7