I tried to install 6.1 on my cluster which was running originally on 5.6.3. I got the same error as here.
What was new to me was this statement:
Yet in the elasticsearch.service file itself this was mentioned.
Specifies the maximum number of bytes of memory that may be locked into RAM Set to "infinity" if you use the 'bootstrap.memory_lock: true' option in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/sysconfig/elasticsearch
So I did change this file. And as pointed out this file was not changed when I upgraded from 5.2.2 to 5.6.3 as this line at the end of current file shows
Built for distribution-5.2.2 (distribution)
After upgrade I think it should have been 5.6.3.
The error I see in
/var/log/messages after install of 6.1
Failed at step EXEC spawning /usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec: No such file or directory
What are the options I have now?
Is there any place I can copy the Unit file for 6.1 or is there a better way to deal with this?