Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2018 21:07:04 +0200
From:      "Fotis Zabaras" <news@saz.gr>
To:        freebsd-elastic@freebsd.org
Subject:   Re: Problem with Elasticsearch 5 service script
Message-ID:  <op.zhokp7aupvh08s@laptopidis>
In-Reply-To: <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de>
References:  <393485b6-ece3-e6a5-48f6-dcb8af419619@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Apr 2018 13:42:00 +0200, Joachim Mathes <mathes@punkt.de> wrote:

> Hello Elastic-Team,
>
> we have problems with starting the elasticsearch service of package  
> https://www.freshports.org/textproc/elasticsearch5/ (2018Q2).
> When we try to start elasticsearch the rc.d-script fails with:
>
> """
> Starting elasticsearch. Could not find any executable java binary.  
> Please install java in your PATH or set JAVA_HOME
> """
>
> We fixed this issue by extending the PATH variable in  
> /usr/local/etc/rc.d/elasticsearch:
>
> """
> export PATH=$PATH:/usr/local/openjdk8/bin
> """
>
> Can you reproduce this?
>
> Best
> Jo
> _______________________________________________
> freebsd-elastic@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-elastic
> To unsubscribe, send any mail to  
> "freebsd-elastic-unsubscribe@freebsd.org"

Hello there,

# pkg info | grep jre
openjdk8-jre-8.162.12          Java Runtime Environment 8
# pkg info|grep ela
elasticsearch5-5.6.8_5         Full-text search engine for Java
# /usr/local/etc/rc.d/elasticsearch onestart
Starting elasticsearch.
# ps aux|grep elastic
elasticsearch  984 33.4  7.5 2400008 619152  0  S    21:04   0:05.49  
/usr/local/openjdk8/bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC  
-XX:CMSInitiatingOccupancyFra

Everything is with the default options

Which version of jre are you using ?

Fotis



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.zhokp7aupvh08s>