Integrate AEM with Elastic Search 8 | Community
Skip to main content
acgurnani
Level 2
September 20, 2023
Solved

Integrate AEM with Elastic Search 8

  • September 20, 2023
  • 1 reply
  • 1750 views

Hi,

 

I'm having trouble in integrating Elastic Search 8 with AEM, specially in dependency and pom management.

My bundle is in Installed state with the following classes not resolved.

 

io.opentelemetry.api.events -- Cannot be resolved
io.opentelemetry.extension.incubator.metrics -- Cannot be resolved
jakarta.json,version=[2.0,3) -- Cannot be resolved
jakarta.json.spi,version=[2.0,3) -- Cannot be resolved
jakarta.json.stream,version=[2.0,3) -- Cannot be resolved

org.apache.http.impl.nio.client -- Cannot be resolved

org.elasticsearch.client -- Cannot be resolved

 

Even though the original ES document just mentions the 2 dependency to be added to pom(Already added)

Link : https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/installation.html#installation

<project>
  <dependencies>

    <dependency>
      <groupId>co.elastic.clients</groupId>
      <artifactId>elasticsearch-java</artifactId>
      <version>8.10.1</version>
    </dependency>

    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.12.3</version>
    </dependency>

  </dependencies>
</project>

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ManviSharma

Hi,

 

  1. Check Elasticsearch 8 compatibility with your AEM version.
  2. Examine your bundle's dependencies for conflicts with Elasticsearch.
  3. Use Maven's dependencyManagement to specify dependency versions.
  4. Check for conflicting or duplicate dependencies with mvn dependency:tree.
  5. Consider updating AEM or dependencies to match Elasticsearch 8.
  6. Use a custom classloader to isolate dependencies if needed.

1 reply

ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
September 20, 2023

Hi,

 

  1. Check Elasticsearch 8 compatibility with your AEM version.
  2. Examine your bundle's dependencies for conflicts with Elasticsearch.
  3. Use Maven's dependencyManagement to specify dependency versions.
  4. Check for conflicting or duplicate dependencies with mvn dependency:tree.
  5. Consider updating AEM or dependencies to match Elasticsearch 8.
  6. Use a custom classloader to isolate dependencies if needed.
acgurnani
acgurnaniAuthor
Level 2
September 25, 2023

Upgrading AEM worked for me , thanks for the response.

kautuk_sahni
Community Manager
Community Manager
June 7, 2024

@acgurnani I hope you found the AEM community helpful. We look forward to your return as either a learner or a contributor. The community thrives with SMEs like you. Please encourage your AEM peers to join and contribute. Happy AEM learning!

Kautuk Sahni