Installing REadonlyREST first time


(mke) #1

/usr/share/elasticsearch$ sudo bin/elasticsearch-plugin install readonlyrest-1.14.1_es5.3.0.zip
[sudo] password for user:
Sorry, try again.
[sudo] password for user:
A tool for managing installed elasticsearch plugins

Commands

list - Lists installed elasticsearch plugins
install - Install a plugin
remove - Removes a plugin from elasticsearch

Non-option arguments:
command

Option Description


-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: Unknown plugin readonlyrest-1.14.1_es5.3.0.zip

I tried also

1933 sudo bin/elasticsearch-plugin install file:readonlyrest-1.14.1_es5.3.0.zip
1934 sudo bin/elasticsearch-plugin install file:./readonlyrest-1.14.1_es5.3.0.zip
1935 sudo bin/elasticsearch-plugin install ./file:readonlyrest-1.14.1_es5.3.0.zip
1936 sudo bin/elasticsearch-plugin install file:readonlyrest-1.14.1_es5.3.0.zip
1937 sudo bin/elasticsearch-plugin install file:/readonlyrest-1.14.1_es5.3.0.zip
1938 sudo bin/elasticsearch-plugin install readonlyrest-1.14.1_es5.3.0.zip
1939 sudo bin/elasticsearch-plugin install file:///readonlyrest-1.14.1_es5.3.0.zip
1940 sudo bin/elasticsearch-plugin install file:///.readonlyrest-1.14.1_es5.3.0.zip
1941 sudo bin/elasticsearch-plugin install file:///./readonlyrest-1.14.1_es5.3.0.zip

Why?


(Diego Nieto Cid) #2

Try giving an absolute file URL:

bin/elasticsearch-plugin install file:///path/to/readonlyrest

I’m not sure whether relative ones are supported, the RFC describing the file scheme say the path is absolute.


#3

This worked for me (on windows)

.\elasticsearch-plugin.bat install file:///c:/readonlyrest-1.14.1_es5.3.0.zip


(mke) #4

yep thx, that worked:

/usr/share/elasticsearch$ sudo bin/elasticsearch-plugin install file:///usr/share/elasticsearch/readonlyrest-1.14.1_es5.3.0.zip