geerlingguy/ansible-role-elasticsearch

Vanilla install on Ubuntu error - Guice Exception: java.lang.IllegalArgumentException: script.disable_dynamic is not a supported setting, replace with fine-grained script settings.

adamstraube opened this issue · 4 comments

I get the below error after generating an Elasticsearch instance in Virtualbox. I fixed it by replacing

script.disable_dynamic: false with

script.inline: on and
script.indexed: on as per the error message. Not sure if this error is happening for other people, but it would be a simple fix to change.

Guice Exception: java.lang.IllegalArgumentException: script.disable_dynamic is not a supported setting, replace with fine-grained script settings.
Dynamic scripts can be enabled for all languages and all operations by replacing script.disable_dynamic: false with script.inline: on and script.indexed: on in elasticsearch.yml

rande commented

yep, since an issue with the latest ES version

Same here on CentOS 6.7, and same fix worked. Happy to contribute a pull request if desired, @geerlingguy

Reference:
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html

@bashcoder - Sure thing, please send it and I'll review. I've been meaning to run through ELK-related roles and do some major cleanup; I've spent too much time on my LEMP/proxy roles lately :)

Fixed in #13