No jvm.options after having installed JRE 8 and Elasticsearch 7.3.1

I have just installed JRE by using apt-get install default-jre

I then installed Elasticsearch by using apt-get install elasticsearch

Now, I have to edit the jvm.options file, which should reside under /etc/elasticsearch/ , but it's not there. I also tried a find on jvm.options, to no avail.

What am I missing?

hey,

first, you might want to install a jdk instead of a JRE. However the file you are missing is part of the elasticsearch package. Are you using the official elastic repositories mentioned at https://www.elastic.co/guide/en/elasticsearch/reference/7.3/deb.html ?

Can you share the output of dpkg -L elasticsearch in a gist somewhere? Also dpkg -l elasticsearch for completeness.

Thanks!

Hey!

Here you go: https://justpaste.it/6bocj

I installed Elasticsearch with apt-get install elasticsearch, so I'd expect it to be sort of official; but maybe that's the problem :slightly_smiling_face:

Hey,

ok, here goes the issue. the dpkg -l (with a lowercase L) shows that you are trying to install a very old version of Elasticsearch, that has been unsupported for several years - and also does not contain that jvm.options file yet. Uninstall that one, and follow the steps in the link above to get a new and fresh one.

--Alex

1 Like

Ah thanks, makes sense! Note to self, don't use the apt-get package!

Have a great day Spinscale.

1 Like

Using apt-get is fine, but you need to use the official apt repository (noted in the link Alex provided earlier), which is changed every major version:

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

1 Like

Thanks Ryan - I'll try that in stead then :+1:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.