I am trying to reduce the number of modules to the minimum number required. However, I find that when apm module is being removed, I get an error that says “ERROR: Expected to find [apm] module” and this got me confused, as I am not able to find what exactly is having a dependency on apm.
By “reduce the number of modules” do you mean you’re deleting stuff (e.g. .jar files) from the Elasticsearch installation? If so, that’s not expected to work, I’m surprised you can delete any of them. They are all required.
Nope, we did not remove jar files. So the elasticsearch that we have is an adapted version of the official version on Elasticsearch website. What we did is that in modules, we only selected the ones that we require for our use case, which in our case would be x-pack-core, x-pack-security, transport-netty4, reindex. It previously worked for our 7.17.8 version. And in the newer version I get an error message that [apm] is also a required module. Which made me curious if it’s necessary for version 8.19.8.
Adapted how exactly?
What do you mean by “selected” exactly?