Elasticsearch can't run on CentOS 7 x64

I installed the last version of "elasticsearch" via "yum" command but "service elasticsearch status" showing me that "elastcsearch" can't run. I stopped and started service again but problem exist:

$ sudo service elasticsearch status
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Tue 2017-06-13 16:24:03 EDT; 20s ago
Docs: http://www.elastic.co
Process: 13786 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=killed, signal=KILL)
Process: 13774 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 13786 (code=killed, signal=KILL)

Jun 13 16:22:40 localhost.localdomain systemd[1]: Starting Elasticsearch...
Jun 13 16:22:40 localhost.localdomain systemd[1]: Started Elasticsearch.
Jun 13 16:22:43 localhost.localdomain elasticsearch[13786]: OpenJDK 64-Bit Server VM warning: If the ...=N
Jun 13 16:24:02 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=k...ILL
Jun 13 16:24:04 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
Jun 13 16:24:04 localhost.localdomain systemd[1]: elasticsearch.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

How can I solve it?

Thank you.

Check /var/log/elasticsearch, there should be something there with more info.

It is because of VirtualBox :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.