I have a new Ubuntu system(16.08 Xenial LTS). I installed elastic search(apt-get install elasticsearch), but I am having issues.
It seems the Elastic search daemon starts, but then exists with 'active (exited)', and no longer listens on the port.
When I start it and check the status I see where it shows active but yet exited:
two@develop ...gitlab/echo-music-player/setup (master) % sudo /etc/init.d/elasticsearch status * elasticsearch.service - LSB: Starts elasticsearch Loaded: loaded (/etc/init.d/elasticsearch; bad; vendor preset: enabled) Active: active (exited) since Fri 2018-07-06 21:30:39 CDT; 28min ago Docs: man:systemd-sysv-generator(8) Process: 10966 ExecStop=/etc/init.d/elasticsearch stop (code=exited, status=0/SUCCESS) Process: 11075 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS) Jul 06 21:30:39 develop systemd: Starting LSB: Starts elasticsearch... Jul 06 21:30:39 develop systemd: Started LSB: Starts elasticsearch.
I noticed in the /etc/elasticsearch directory I do not have all the config files:
root@develop:/etc/elasticsearch# lr total 36K drwxr-xr-x 2 root root 4.0K Jul 6 21:16 . drwxr-xr-x 119 root root 12K Jul 6 21:16 .. -rw-r--r-- 1 root root 14K Oct 15 2015 elasticsearch.yml -rw-r--r-- 1 root root 2.1K Oct 15 2015 logging.yml root@develop:/etc/elasticsearch#
Here is the Java that is on my system:
root@develop:/etc/elasticsearch# update-alternatives --config java There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Nothing to configure.
Any ideas what is wrong? Why are most of the Java configs missing in the /etc/elasticsearch directory?