Elasticsearch optional maven depdendencies
Asked Answered
E

0

9

I am using Elasticsearch 2.1. When I start up the system, I get several exceptions about failing to load classes related to scripting. For example,

failed to load mustache
java.lang.ClassNotFoundException: com.github.mustachejava.Mustache

I can resolve this problem by including these dependencies in my project, but I am not using these scripting languages. Is there a way to tell Elasticsearch to disable their use and to prevent it from throwing the exceptions?

Eberly answered 28/1, 2016 at 17:16 Comment(2)
It's worth noting that the exceptions are logged by Elasticsearch at a debug level, so changing the logging level would prevent them from appearing in logs. That said, if Elasticsearch is intended to be able to run without these dependencies, it should behave in a more reasonable manner when they do not exist.Eberly
Can you share your pom file and the code that you're using?Flotow

© 2022 - 2024 — McMap. All rights reserved.