Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Integration with Elasticsearch
Hi ,
We are using elasticsearch7 to store the data from liferay and it is not an embedded elastic search.
and we are using below versions of clients to connect to the elastic search.
elasticsearch-rest-high-level-client:6.2.0 and
below is the issue
2021-10-25 06:30:01.123 ERROR
[fileinstall-C:/liferay-dxp-digital-enterprise-tomcat-7.0-sp7/liferay-dxp-digital-enterprise-7.0-sp7/osgi/modules][ExampleElastic:97]
[ExampleElastic.portlet.ExampleElasticPortlet(2621)] Error during
instantiation of the implementation object
java.util.ServiceConfigurationError:
org.apache.logging.log4j.spi.Provider: Provider
org.apache.logging.log4j.core.impl.Log4jProvider not a subtype
at
java.util.ServiceLoader.fail(ServiceLoader.java:239)
at
java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
at
java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at
java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at
org.apache.logging.log4j.util.ProviderUtil.loadProviders(ProviderUtil.java:101)
at
org.apache.logging.log4j.util.ProviderUtil.<init>(ProviderUtil.java:67)
at
org.apache.logging.log4j.util.ProviderUtil.lazyInit(ProviderUtil.java:142)
at
org.apache.logging.log4j.util.ProviderUtil.hasProviders(ProviderUtil.java:126)
at
org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:89)
at
org.elasticsearch.common.logging.ESLoggerFactory.getLogger(ESLoggerFactory.java:45)
at
org.elasticsearch.common.logging.ESLoggerFactory.getLogger(ESLoggerFactory.java:53)
at
org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:38)
at
org.elasticsearch.action.search.SearchRequest.<clinit>(SearchRequest.java:61)
at
ExampleElastic.portlet.ExampleElasticPortlet.<clinit>(ExampleElasticPortlet.java:49)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
and using liferay-dxp-enterprise-7.0-sp7.
any solutions would be appreciated.
Thanks,
mahesh
You're right in not using an embedded elasticsearch (which is only good for demo/dev environments, but not supported in production systems).
However, please note that the Search Compatibility Matrix (linked from the product's compatibility matrix) goes up to elasticsearch 6 for DXP 7.0.
Powered by Liferay™