Readonlyrest.yml file is not being created


(Alexandra) #1

Hi

I am trying to get ReadonlyREST installed and configured on a previoulsy working elasticsearch stack (version 6.2.1) using ReadonlyREST 1.16.18

I have installed it twice now and yet it does not create a readonlyrest.yml file at all.

[email protected]:/usr/share/elasticsearch# ./bin/elasticsearch-plugin install file:///home/alexa/readonlyrest-1.16.18_es6.2.1.zip
-> Downloading file:///home/alexa/readonlyrest-1.16.18_es6.2.1.zip
[=================================================] 100%??
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.io.FilePermission << ALL FILES >> read
  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • java.net.SocketPermission * connect,accept,resolve
  • java.security.SecurityPermission getProperty.ssl.KeyManagerFactory.algorithm
  • java.util.PropertyPermission * read,write
    See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
    for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
-> Installed readonlyrest
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch#
[email protected]:/usr/share/elasticsearch# cd /etc/elasticsearch
[email protected]:/etc/elasticsearch# ls
elasticsearch.keystore elasticsearch.yml ingest-geoip jvm.options log4j2.properties
[email protected]:/etc/elasticsearch# find / -name 'readonlyrest.yml’
[email protected]:/etc/elasticsearch#

I am installing this as root, yes I can see a generic warning about requiring addition permission on java plugins without any indication as to what permissions are required or even as to whether or not this is why any given config file has not been created.

Is anybody able to assist please?

Alexa


(Simone Scarduzio) #2

Hi @alexa, welcome to ReadonlyREST Forum!

Yeah, it’s not supposed to be created automatically. Just create it yourself right beside elasticsearch.yml in the same directory, wherever it is in your environment.