Elasticsearch 'Node' must use log4j2
the-james-burton opened this issue · 3 comments
Trying to use the log4j-to-slf4j v2 gives this error...
java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
Note that ES Node in-process is not supported any more!
https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_java_api_changes.html
A surefire dependency exclude will be added. This will mean that unfortunately the ES test will not work in Eclipse, since its JUnit runner does not honor these exclusions (and eclipse does not seem to have any other way of excluding a dependency).
All works now as best as I can make it. It is disappointing that the JUnit test cannot (it seems) be made to work in Eclipse.