I've just done a fresh install of ElasticSearch 1.4.4 and I was
previously using ElasticSearch 1.3 and I've run into an issue with my
app that I can't resolve.
I converted my MVEL scripts to Groovy and placed them into the
config/scripts directory, each with .groovy extensions, but whenever I
use the Update API to attempt to call these scripts I get a
ScriptException saying that dynamic script is disabled, despite the fact
that I'm not trying to use dynamic scripting:
[2015-03-04 17:58:15,938][WARN ][bulk.udp ] [Gardener]
 failed to execute bulk request: failure in bulk execution:
: index [messages-20150304], type [message], id
[ElasticsearchIllegalArgumentException[failed to execute script];
nested: ScriptException[dynamic scripting for [groovy] disabled]; ]
I can see from the logs that ES is seeing the scripts and compiling them:
[2015-03-04 17:36:16,485][INFO ][script ] [Gardener]
compiling script file [/etc/elasticsearch/scripts/update_subsc
[2015-03-04 17:36:16,449][INFO ][script ] [Gardener]
compiling script file [/etc/elasticsearch/scripts/update_messa
[2015-03-04 17:36:16,417][INFO ][script ] [Gardener]
compiling script file [/etc/elasticsearch/scripts/update_defer
[2015-03-04 17:36:15,935][INFO ][script ] [Gardener]
compiling script file [/etc/elasticsearch/scripts/update_bounc
I'm using the Bulk UDP API to send the update like this:
I was using 'script' instead of 'script_id' on 1.3.0, but I checked it
as per the docs.
Can anyone see what I'm doing wrong an point me in the right direction?
Thanks in advance.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/md7hj5%24rb%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.