Are you using ES in an embedded way here? ES tries to load the groovy language when it starts up, but if the jar is missing (or it was unable to load it for other reasons), then it disables the scripting language.
You should see a "failed to load groovy" message with a stacktrace in the logs, can you post that here?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.