I installed elasticsearch 1.1.1 from rpm package on redhat 6.2
Init script /etc/init.d/elasticsearch is installed and run at server boot
but *no java process is started or it dies silently. No log in
/var/log/elasticsearch/ but the lock file is touched
(/var/lock/subsys/elasticsearch)
If I run (as root) "/etc/init.d/elasticsearch start", the node is started.
I added a logger statement to /usr/share/elasticsearch/bin/elasticsearch to
see what is actually run. Here is what is written to /var/log/message :
I had trouble with this a while ago and in my case it turned out to be that
I didn't have enough ram to allocate and the JDK was crashing. That
probably isn't what is up with yours but you can follow along with the
issue starting here:
These kinds of problems irk me because I don't really have a good way to
solve them. Maybe pipe the stdout/stderr of the Elasticsearch process in
the init script to tmp temporarily file then try to start it. The JDK has
a habit of printing errors to stderr because, when it fails, it doesn't
have anywhere else to send them.
Path problems, maybe?
Nik
On Tue, May 6, 2014 at 9:12 AM, Zacharie Elcor zelcor@gmail.com wrote:
Hi,
I installed elasticsearch 1.1.1 from rpm package on redhat 6.2
Init script /etc/init.d/elasticsearch is installed and run at server boot
but *no java process is started or it dies silently. No log in
/var/log/elasticsearch/ but the lock file is touched
(/var/lock/subsys/elasticsearch)
If I run (as root) "/etc/init.d/elasticsearch start", the node is started.
I added a logger statement to /usr/share/elasticsearch/bin/elasticsearch
to see what is actually run. Here is what is written to /var/log/message :
Many thanks Nik. Not a RAM issue but your second advice was helpful.
I added "> /tmp/logfile 2>&1" at the end of line "daemon --user..." in
/etc/init.d/elasticsearch.
After rebbot, /tmp/logfile contained a message saying that env var HOSTNAME
was not defined. In my case, HOSTNAME is used in elasticsearch.yml to
define node name.
These kinds of problems irk me because I don't really have a good way to
solve them. Maybe pipe the stdout/stderr of the Elasticsearch process in
the init script to tmp temporarily file then try to start it. The JDK has
a habit of printing errors to stderr because, when it fails, it doesn't
have anywhere else to send them.
Path problems, maybe?
Nik
On Tue, May 6, 2014 at 9:12 AM, Zacharie Elcor <zel...@gmail.com<javascript:>
wrote:
Hi,
I installed elasticsearch 1.1.1 from rpm package on redhat 6.2
Init script /etc/init.d/elasticsearch is installed and run at server boot
but *no java process is started or it dies silently. No log in
/var/log/elasticsearch/ but the lock file is touched
(/var/lock/subsys/elasticsearch)
If I run (as root) "/etc/init.d/elasticsearch start", the node is started.
I added a logger statement to /usr/share/elasticsearch/bin/elasticsearch
to see what is actually run. Here is what is written to /var/log/message :
Many thanks Nik. Not a RAM issue but your second advice was helpful.
I added "> /tmp/logfile 2>&1" at the end of line "daemon --user..." in
/etc/init.d/elasticsearch.
After rebbot, /tmp/logfile contained a message saying that env var
HOSTNAME was not defined. In my case, HOSTNAME is used in elasticsearch.yml
to define node name.
On Tuesday, May 6, 2014 3:24:55 PM UTC+2, Nikolas Everett wrote:
I had trouble with this a while ago and in my case it turned out to be
that I didn't have enough ram to allocate and the JDK was crashing. That
probably isn't what is up with yours but you can follow along with the
issue starting here: GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine
issues/5234
These kinds of problems irk me because I don't really have a good way to
solve them. Maybe pipe the stdout/stderr of the Elasticsearch process in
the init script to tmp temporarily file then try to start it. The JDK has
a habit of printing errors to stderr because, when it fails, it doesn't
have anywhere else to send them.
Path problems, maybe?
Nik
On Tue, May 6, 2014 at 9:12 AM, Zacharie Elcor zel...@gmail.com wrote:
Hi,
I installed elasticsearch 1.1.1 from rpm package on redhat 6.2
Init script /etc/init.d/elasticsearch is installed and run at server
boot but *no java process is started or it dies silently. No log in
/var/log/elasticsearch/ but the lock file is touched (/var/lock/subsys/
elasticsearch)
If I run (as root) "/etc/init.d/elasticsearch start", the node is
started.
I added a logger statement to /usr/share/elasticsearch/bin/elasticsearch
to see what is actually run. Here is what is written to /var/log/message :
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.