Hi all,
I'm totally new here, so please forgive me if I'm posing in the wrong category or ask a newbie question.
I've setup Elasticsearch 1.4.4 for a SugarCRM system and I'm not quite sure if it is working fine or not. The status of Elasticsearch is ambiguous. When running:
systemctl status elasticsearch.service -l
I get the following output:
elasticsearch.service - Starts and stops a single elasticsearch instance on this system
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
Active: active (running) since Sat 2016-12-10 16:13:20 CET; 2min 44s ago
Docs: http://www.elasticsearch.org
Process: 8351 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Des.default.config=$CONF_FILE -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR (code=exited, status=0/SUCCESS)
Main PID: 8357 (java)
CGroup: /system.slice/elasticsearch.service
└─8357 /bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Des.max-open-files=true -Delasticsearch -Des.pidfile=/var/run/elasticsearch/elasticsearch.pid -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.4.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.Elasticsearch
Dec 10 16:13:20 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
Dec 10 16:13:20 localhost.localdomain systemd[1]: Starting Starts and stops a single elasticsearch instance on this system...
Dec 10 16:13:20 localhost.localdomain systemd[1]: PID file /var/run/elasticsearch/elasticsearch.pid not readable (yet?) after start.
Dec 10 16:13:20 localhost.localdomain systemd[1]: Started Starts and stops a single elasticsearch instance on this system.
Dec 10 16:13:21 localhost.localdomain elasticsearch[8351]: [2016-12-10 16:13:21,042][INFO ][bootstrap ] max_open_files [65535]
Now, while it says that the service is running, it also says that it has entered a failed state and elasticsearch.pid not readable (yet?) after start.
I'm not sure if this is normal. I've made a lot of Googling but couldn't find a definite answer.
I'm using CentOS 7
Really appreciate your input and sorry if the question is duplicate or something.
Thanks!