# Dynamic scripting for local node for 1.6?

**URL:** <https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099>\
**Category:** Elasticsearch\
**Created:** [July 7, 2015, 11:55pm UTC](https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099 "2015-07-07T23:55:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwilliams](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mwilliams/32/3624_2.png) [@mwilliams](https://discuss.elastic.co/u/mwilliams)\
**Post date:** [July 7, 2015, 11:55pm UTC](https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099/1 "2015-07-07T23:55:53Z")

</div>

We are trying to upgrade to ES 1.6 from an ancient (pre-0.90) version. We have an extensive set of integration tests that use an embedded ES as a local node. Some of our tests exercise dynamic custom scoring scripts. These tests are failing under 1.6 with the following error:

```
script_score the script could not be loaded]; nested: ElasticsearchIllegalArgumentException[script_lang not supported [groovy]];

```

We realize we need to explicitly enable dynamic scripting in 1.6, but whether we try the deprecated setting (script.disable\_dynamic) or the new fine-grained settings, we always get the same error.

The test set up is similar to:

```
val settings = ImmutableSettings.settingsBuilder()
    .put("node.local", true)
    .put("path.data", "/tmp")
    .put("cluster.name", "integration-test")
    .put("script.disable_dynamic", false)
    ...
    .build()

val client = nodeBuilder().settings(settings).node().client()

```

Is this a known limitation? A possible bug? Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [July 8, 2015, 3:37am UTC](https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099/2 "2015-07-08T03:37:52Z")

</div>

You are probably missing groovy dependency in your build. Try adding

```
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>2.4.0</version>
        <scope>compile</scope>
    </dependency>
```

---

<div class="post-metadata">

**Author:** ![mwilliams](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mwilliams/32/3624_2.png) [@mwilliams](https://discuss.elastic.co/u/mwilliams)\
**Post date:** [July 8, 2015, 5:46pm UTC](https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099/3 "2015-07-08T17:46:20Z")

</div>

Hi Igor,

Spot on! That was what we missed. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:02am UTC](https://discuss.elastic.co/t/dynamic-scripting-for-local-node-for-1-6/25099/4 "2017-07-06T00:02:50Z")

</div>


