Problem with Elasticsearch 5 service script

Fotis Zabaras news at saz.gr
Wed Apr 18 19:07:22 UTC 2018


On Wed, 18 Apr 2018 13:42:00 +0200, Joachim Mathes <mathes at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-elastic
> To unsubscribe, send any mail to  
> "freebsd-elastic-unsubscribe at 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


More information about the freebsd-elastic mailing list