On fresh install Ubuntu 16.04 I use next steps to install ElasticSearch 5.0.1 or 5.0.2 and ES failed to start. Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?
- su
- add-apt-repository ppa:webupd8team/java
- apt-get update
- apt-get upgrade
- apt-get install oracle-java8-installer
- java -version
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
- apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update && sudo apt-get install elasticsearch
service elasticsearch status
Elasticsearch 5.x failed to start on Ubuntu 16.04. Does anyone know how can I run ES 5.x on Ubuntu 16.04 or 14.04?
I also try with the new version of Elasticsearch 5.1.1 with this few steps
- su
- apt-get purge elasticsearch
- apt-get update
- apt-get upgrade
- apt-get install elasticsearch
-- new version elasticsearch 5.1.1 is installed
- now if I check status I get this
service elasticsearch status
● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: http : / / www.elastic.co
Dec 09 22:49:49 elastic systemd[1]: Stopped Elasticsearch.
dmesg
. If ES get killed (you will havesignal
as a "reason" in your ES status) , check how much heap is allocated. In 5.x. ES you can edit/etc/elasticsearch/jvm.option
file an modify#-Xms2g #-Xmx2g
– user305883/etc/elasticsearch/jvm.option
-Xms2g
and-Xmx2g
to#-Xms2g
and#-Xmx2g
and after service elasticsearch start ES run well on Ubuntu 16.04. This was right answer. Thanks again. – user1762634