I want to setup elasticsearch cluster. I am running ES as systemd service. but when I run it gives this log
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/elasticsearch.service.d
└─elasticsearch.conf
Active: failed (Result: exit-code) since Mon 2017-08-14 06:34:52 EDT; 25min ago
Docs: http://www.elastic.co
Process: 27403 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 27401 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 27403 (code=exited, status=1/FAILURE)
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at java.nio.file.Files.createTempFile(Files.java:897) ~[?:1.8.0_131]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at org.elasticsearch.bootstrap.Security.selfTest(Security.java:486) ~[elasticsearch-5.5.1.jar:5.5.1]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at org.elasticsearch.bootstrap.Security.configure(Security.java:121) ~[elasticsearch-5.5.1.jar:5.5.1]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[elasticsearch-5.5.1.jar:5.5.1]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:351) ~[elasticsearch-5.5.1.jar:5.5.1]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.5.1.jar:5.5.1]
Aug 14 06:34:52 Bigdata-Namenode elasticsearch[27403]: ... 6 more
Aug 14 06:34:52 Bigdata-Namenode systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Aug 14 06:34:52 Bigdata-Namenode systemd[1]: elasticsearch.service: Unit entered failed state.
Aug 14 06:34:52 Bigdata-Namenode systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
and /var/log/elasticsearch.log
contains the above log only. this is all the log I get. So, I have no idea what to even post
here is my elasticsearch.yml