Unomi 4 · Operations
Elasticsearch 9 and OpenSearch in Unomi 4
One CDP runtime, two supported search backends — pick the distribution that matches your ops constraints.
Unomi 3.0 already moved Elasticsearch to the 9.x Java API client (the High Level REST Client is gone) and pinned Elasticsearch 9.1.3. Unomi 4.0 keeps that client. UNOMI-828 / #715 made OpenSearch a first-class persistence module with its own distribution packaging, and the platform upgrade in #796 then moved the pins to Elasticsearch 9.4.3 and OpenSearch 3.7.0. OpenSearch is not part of the 3.0, 3.0.1, or 3.1.0 releases.
Capabilities
- Dual distributions —
unomi-distribution-elasticsearchandunomi-distribution-opensearch - Shared PersistenceService SPI — profiles, events, segments, rules, clustering, and the task scheduler stay on the same application paths
- Elasticsearch 9.4.3 Java API client — same client family as Unomi 3.x (9.1.3); config prefix
org.apache.unomi.elasticsearch.* - OpenSearch module —
persistence-opensearch; config prefixorg.apache.unomi.opensearch.*(addresses, cluster name, credentials, SSL, index prefix) - Build flags — Maven /
build.sh --use-opensearch; IT matrix can run either engine - Docker / env —
UNOMI_DISTRIBUTION=...selects packaging - Migration guide — documented ES → OpenSearch path (index naming, clients, verification)
- Version pins in 4.0.0 — Elasticsearch 9.4.3 and OpenSearch 3.7.0 in the reactor (Unomi 3.1.0: Elasticsearch 9.1.3, no OpenSearch module)
What you choose
- Elasticsearch —
persistence-elasticsearch, config prefixorg.apache.unomi.elasticsearch.*(addresses, cluster name, credentials, SSL, index prefix) - OpenSearch —
persistence-opensearch, config prefixorg.apache.unomi.opensearch.*with the same conceptual shape
Both implement the Unomi PersistenceService SPI, so profiles, events, segments, rules, clustering, and the task scheduler stay on the same application paths.
Build and run flavors
# Maven / build.sh (--no-karaf: build only, do not start Karaf)
./build.sh --no-karaf
# OpenSearch builds need the admin password exported first
export UNOMI_OPENSEARCH_PASSWORD='MyStrongPassw0rd!'
./build.sh --use-opensearch --no-karaf
./build.sh --integration-tests --use-opensearch --no-karaf
# Docker distribution hint
UNOMI_DISTRIBUTION=unomi-distribution-elasticsearch
UNOMI_DISTRIBUTION=unomi-distribution-opensearch
Migrating engines
Moving an existing deployment from Elasticsearch to OpenSearch is documented as its own migration path (index naming, client settings, verification). Start from Migrate from Elasticsearch to OpenSearch in the Unomi 4 manual.
Why it matters
Regulated and cloud-restricted environments often need an OpenSearch footprint; others stay on Elasticsearch. Unomi 4.0 stops treating that as a fork of the product — it is a packaging and configuration choice on a shared SPI, on the same runtime (Java 17, Karaf 4.4, persistence clustering).