ROR plugin for ES 8.x - Patch error

Hi,

I installed Elasticsearch 8.1.1 but not with the RPM of the editor. I used the tar.gz file.

When I want to path the ROR plugin, I get the following error :
jdk/bin/java -jar plugins/readonlyrest/ror-tools.jar patch
Exception in thread “main” java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins /readonlyrest

But my Elasticsearch is not installed in the /usr/share folder.

Regards
H.

Hi @hassen

The es-path can be changed.

> java -jar ror-tools.jar --help
ROR tools 1.0.0
Usage: java -jar ror-tools.jar [patch|unpatch|verify] [options]

Command: patch [options]
patch is a command that modifies ES installation for ROR purposes
  --es-path <value>        Path to elasticsearch directory; default=/usr/share/elasticsearch

Command: unpatch [options]
unpatch is a command that reverts modifications done by patching
  --es-path <value>        Path to elasticsearch directory; default=/usr/share/elasticsearch

Command: verify [options]
verify is a command that verifies if ES installation is patched
  --es-path <value>        Path to elasticsearch directory; default=/usr/share/elasticsearch

  -h, --help               prints this usage text

I think that everything should be obvious to you at the moment.
In case of any other problem with the patching, let us know about it.

–es-path not working on Windows? Any advice? Thanks

I am getting below error even when running --help only.
Caused by: java.lang.IllegalArgumentException: requirement failed: \usr\share\elasticsearch is not an absolute path

1 Like

TBH we didn’t test it on windows. Could you please show us the error you get?

Good point. We should test on windows, and add some copy paste examples in the docs as well!