ES 2.0 deb installation issues

(Itamar Syn-Hershko) #1


I'm using the following command to install ES 2.0 on Ubuntu LTS 14.04:

es_version=2.0.0 && curl -s "$es_version/elasticsearch-$es_version.deb" -o elasticsearch-$es_version.deb && sudo dpkg -i elasticsearch-$es_version.deb && sudo update-rc.d elasticsearch defaults 95 10

This used to work before (pre-2.0) but isn't working now. It complains about /usr/share/elasticsearch/config and /usr/share/elasticsearch/log not accessible (which they indeed aren't). I had to manually symlink the /etc and /var paths to the ones ES was expecting:

ln -s /etc/elasticsearch/ /usr/share/elasticsearch/config
ln -s /var/log/elasticsearch/ /usr/share/elasticsearch/logs

In addition, I can't seem to disable swappiness via bootstrap.mlockall: true - ES will complain even when that is set and even when I edit /etc/security/limits.conf manually and restart the service.

I'm not quite sure what's going on. I know there have been similar issues with paths in the past, has anything changed in 2.0 that could cause this?


(Mark Walkom) #2

These have never been the default paths, so not sure why it wants them?

(Itamar Syn-Hershko) #3

I wouldn't know... this happens for me on every Ubuntu machine I launch on
Azure. Can you check this on your end? have you had reports for similar

(Mark Walkom) #4

I just tried this on an Ubuntu 14.04 machine, didn't run into this!

(Itamar Syn-Hershko) #5

Seems to work fine now - but was happening repeatedly on Azure Ubuntu
boxes.. weird..

(system) #6