Free audit

View Audit Scope
Upgrades & OLAP CutoversDruid 30+/38 HTTP Discovery · S3 Metadata Clone · Imply to / from K8s

Apache Druid Migration & Version Upgrade Services

JusDB plans and executes production Apache Druid migrations and major version upgrades with verified metric parity and reversible cutover gates. We upgrade legacy Druid clusters to modern Druid 30+/38 releases (HTTP segment and task discovery, MSQ SQL ingestion, nested JSON v5), transition estates between self-managed Kubernetes/VMs and Imply Polaris, and execute cross-engine migrations involving Apache Pinot, ClickHouse, Elasticsearch, and cloud warehouses.

The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance.

  • NDA before access
  • Read-only by default
  • Verified interval parity & rollback gates

Apache Druid migration & upgrade paths

Select a migration path

ZooKeeper-to-HTTP Segment & Task Discovery Upgrades

Modern control plane

Modern Druid releases replace ZooKeeper segment announcements and task queues with HTTP-based discovery (`druid.serverview.type=http`, `druid.indexer.runner.type=httpRemote`).

Upgrading across multi-year Druid jumps requires staged extension, metadata schema, and nested-column format migrations.

Inspect Druid migration simulator

HTTP discovery, MSQ SQL, and metadata upgrade paths verified against Apache Druid Rolling Updates & Migration documentation.

Migration paths covered
Druid 0.x/20.x to 30+/38, VM / Imply Polaris to Kubernetes, and ES / Warehouse / Pinot cutovers
Backfill & sync mechanics
S3/GCS druid_segments mount, Multi-Stage Query (MSQ) SQL, and dual Kafka supervisors
Initial-response targets
15 minutes for a critical (P1) incident under a 24x7 support agreement; 2 to 4 hours in business hours. See details
Coverage hours
Business hours (03:30–12:30 UTC) by default; 24x7 cutover support available under your service agreement

Selected clients

  • Innoviti
  • Blitz
  • Freecharge
  • Nango
  • Recochain
  • Screen Facts
  • Nexora
  • WeCredit

Migration failure modes

Common Apache Druid upgrade and migration blockers we resolve

Multi-version Druid jumps and cross-cluster moves fail when legacy ZooKeeper segment announcements, shared S3 kill tasks, or Kafka seam overlaps go unguarded.

Apache Druid migration blockers, root causes, and engineering remediation
Upgrade / migration signalWhat is usually happeningWhere we start
ZK Announcement StallRolling upgrade from legacy Druid (0.18-0.23) drops Historicals offlineLegacy clusters still rely on ZooKeeper (`druid.serverview.type=batch`) for segment announcements and `forking` task runners that clash with new HTTP discovery defaults.Stage the transition to `druid.serverview.type=http` and `druid.indexer.runner.type=httpRemote` before or during the Blue/Green version jump, and verify Coordinator/Overlord leader election.
Deep-Store Path CollisionBlue and Green Druid clusters overwrite or kill each other's S3 segmentsPointing a new Green cluster at the exact same `druid.storage.storageDirectory` and metadata table with `druid.coordinator.kill.on=true` can delete active Blue segments.Disable automated kill tasks during migration, clone `druid_segments` metadata into an isolated Green PostgreSQL database with a new S3 write prefix, and keep Blue segments read-only.
Kafka Offset Seam GapCutover between historical batch backfill and Kafka supervisor double-counts rowsStarting a Kafka supervisor without aligning segment interval boundaries or Kafka partition offsets overwrites or duplicates events in the transition hour.Start the Green Kafka supervisor at least 24 hours prior to cutover, then run an MSQ `REPLACE INTO ... OVERWRITE` batch job up to an exact hourly boundary to atomically overshadow partial intervals.
v4 vs v5 Nested JSONQueries on nested JSON columns fail or slow down after major version upgradeOlder Druid `json` column formats (v4 or string-encoded JSON) behave differently under Druid 28+/30+ SQL planners and front-coded dictionary compression.Audit nested column types, update ingestion/compaction specs to `auto` (v5 nested columns), and trigger background Coordinator compaction to rewrite older segments.
Extension & Sketch DriftHistorical nodes fail to load segments due to missing extension classesSegments containing `druid-datasketches`, `druid-bloom-filter`, or `druid-stats` metrics cannot deserialize if `druid.extensions.loadList` differs on the target cluster.Inventory all metric and filter types across `sys.segments`, lock `druid.extensions.loadList` identically across all Druid processes, and test segment loading in staging.
Metadata Schema UpgradeCoordinator fails on startup after upgrading across multiple Druid versionsRecent Druid versions add columns (such as `used_status_last_updated` or `schema_fingerprint`) to `druid_segments` and `druid_PendingSegments` in PostgreSQL/MySQL.Back up the PostgreSQL/MySQL metadata store, test the DDL schema migration against a staging clone, or perform a clean Blue/Green metadata export/import.

Technical scope

What our Apache Druid migration engagement includes

From extension and metadata compatibility audits to S3 segment mounting, MSQ batch backfills, dual-stream Kafka synchronization, and shadow query validation.

  • Pre-upgrade version, extension & metadata audit

    We inventory your current Druid version, `runtime.properties`, loaded extensions, metadata DB schema, and segment formats before touching production.

    • Audit ZooKeeper vs HTTP segment/task discovery and extension loadLists
    • Check deprecated ingestion specs, nested JSON formats, and SQL planner flags

    sys.segments · runtime.properties · druid.extensions.loadList · PostgreSQL DDL

    Apache Druid consulting
  • Blue/Green S3/GCS segment mounting & MSQ backfill

    Move multi-terabyte Druid estates to a new cluster or cloud environment without re-ingesting years of historical data from scratch.

    • Export and register immutable S3/GCS segment metadata in the target cluster
    • Run Multi-Stage Query (MSQ) SQL `REPLACE INTO` backfills from Parquet/Delta lakes

    druid_segments export · Multi-Stage Query (MSQ) · S3 / GCS deep store

  • Dual-streaming Kafka / Kinesis supervisor cutover

    Run source and target Kafka or Kinesis supervisors in parallel so real-time ingestion is fully caught up and validated before switching Broker traffic.

    • Independent consumer groups streaming live events into Blue and Green clusters
    • Atomic interval overshadowing so batch backfills and live streams join cleanly

    KafkaSupervisor · KinesisSupervisor · MVCC interval overshadowing

  • Imply Polaris & Kubernetes (druid-operator) migrations

    Transition smoothly between self-managed EC2/VM clusters, Kubernetes (`druid-operator` on EKS/GKE/AKS), and managed Imply Polaris.

    • Repatriate managed cloud deployments onto Kubernetes NVMe StatefulSets
    • Migrate legacy VM clusters into `druid-operator` GitOps or Imply Polaris

    druid-operator · EKS / GKE / AKS · Imply Polaris · Terraform / Helm

  • Cross-engine OLAP migrations (ES, Pinot, ClickHouse)

    Migrate time-series and analytical workloads into Apache Druid (or from Druid into Apache Pinot or ClickHouse) when workload requirements shift.

    • Translate Elasticsearch aggregations or warehouse SQL into Druid roll-up + DataSketches
    • Migrate Druid datasources to Pinot Star-Tree/Upsert or ClickHouse MergeTree

    Apache DataSketches · Calcite SQL · Apache Pinot · ClickHouse

    Druid performance tuning
  • Automated metric parity & shadow query replay

    We prove data accuracy and query latency before flipping production dashboards by comparing hourly metrics and replaying live SQL traffic.

    • Per-interval COUNT, SUM, and DataSketch parity verification across datasources
    • Shadow Broker traffic mirroring with instant router/DNS rollback gates

    Druid SQL parity runner · Broker query metrics · Envoy shadow mirror

Shared responsibility & response targets

How JusDB Druid migration engineering compares with in-place scripts

Blind in-place upgrades or unguarded S3 bucket sharing can corrupt metadata tables or delete production segments; we isolate every step with reversible gates.

Comparison between ad-hoc Druid upgrades and JusDB migration engineering
Migration phaseUncoordinated upgrade / copyWhat JusDB engineers & verifies
Multi-version Druid upgradesIn-place binary swaps across 5+ major versions hit metadata schema errors, ZK announcement stalls, or extension crashes.Uses Blue/Green cluster cutovers or staged rolling upgrades with pre-tested PostgreSQL metadata DDL and HTTP discovery.
Historical data transferRe-ingests years of raw data from scratch or risks S3 deep-store segment deletion by sharing mutable paths.Clones `druid_segments` metadata with isolated write prefixes and disables kill tasks until Blue is retired.
Batch + streaming seamLeaves gap minutes or duplicate rows where historical batch loads meet live Kafka supervisor ingestion.Leverages Druid's MVCC timeline overshadowing (`REPLACE INTO ... OVERWRITE`) aligned with active Kafka streams.
Roll-up & compaction debtCopies hundreds of thousands of legacy uncompacted segments verbatim into the new environment.Applies range-partitioned 300-700 MiB auto-compaction and v5 nested column upgrades during the migration.
Cross-engine SQL & sketchesManual query rewrites miss subtle HyperLogLog / ThetaSketch or time-flooring differences.Validates time-bucketed aggregation results and sketch accuracy across source and target engines before cutover.
Cutover & rollback safetyHard cutover window with no warm fallback if a downstream BI tool or API query fails.Replays shadow production queries against Green Brokers and keeps the Blue cluster ingesting through burn-in.

Published initial-response targets by severity

Standard business hours: 03:30–12:30 UTC

Initial-response targets are 2 to 4 hours during covered business hours, Mon–Fri 09:00–18:00 IST (UTC+5:30). Where your service agreement includes 24x7 on-call, the initial-response target for P1 incidents is 15 minutes. Targets are not resolution guarantees.

SeverityInitial responseDefinitionChannel & coverage
P1 · Critical15 minutesProduction database down, primary unreachable, data corruption risk, or active failover event.24x7 on-call (under your service agreement) · Direct PagerDuty, Opsgenie, or phone page plus incident bridge
P2 · High30 minutesSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.24x7 on-call (under your service agreement) · On-call alert plus shared Slack or Teams channel
P3 · Medium60 minutesNon-critical slow query regression, staging issue, backup warning, or replication check alert.24x7 on-call (under your service agreement) · Shared Slack or Teams channel or support ticket
P4 · Low90 minutesConfiguration question, index advisory, planned schema review, or general operational request.24x7 on-call (under your service agreement) · Shared Slack or Teams channel or support ticket

Our engineering team is in India; business-hours coverage is Mon–Fri 09:00–18:00 IST (UTC+5:30), and 24x7 on-call is available under your service agreement.

Initial-response targets, not resolution guarantees. The target for your engagement is set in your service agreement.

Interactive Blue/Green cutover simulator

How a Blue/Green Druid upgrade reuses S3 segments safely

Step through S3 metadata cloning and dual Kafka streaming, interval parity verification, and reversible Router/Broker traffic switchover.

Apache Druid Blue/Green migration & cutover simulator

Select a migration stage to inspect S3 deep-store safety, Kafka supervisor sync, and Broker routing.

Application BI / API Traffic & Druid Router / Broker

Production dashboards query the Blue cluster; the Green Druid 30+ cluster mounts historical S3 segments read-only (kill tasks off) and starts its own Kafka supervisor.

Blue serving traffic · Green mounting S3 segments + live Kafka
  • Blue Source Cluster (Legacy Druid / VM)

    Serving active production queries

    ONLINE · Kill tasks paused for S3 safety

  • Green Target Cluster (Druid 30+ / K8s)

    HTTP discovery · Isolated Postgres metadata clone

    LOADING · Mounting S3 segments onto NVMe

  • Green KafkaSupervisor / MSQ Engine

    Consuming live Kafka stream + compacting to 5M rows

    STREAMING · Dual-ingest caught up to real-time

Because Druid's deep storage segments in S3 or GCS are immutable, the Green cluster can load historical segments directly from object storage while running an independent Kafka supervisor for new events.

Representative production deliverable

How an HTTP-discovery upgrade and MSQ SQL backfill is executed

Every migration runbook provides exact `common.runtime.properties` diffs, MSQ SQL backfill queries, and S3 kill-task safety guards.

Sample deliverable · Druid 0.22 VM to Druid 30 on EKS with HTTP discovery & MSQ46 TB S3 Deep Store · Zero re-ingestion downtime

Migration outcome

Migrated 46 TB of historical S3 segments onto EKS Druid 30 while replacing ZooKeeper segment queues with HTTP

An observability platform running Druid 0.22 on EC2 hit ZooKeeper announcement timeouts above 180k segments. We deployed a Green Druid 30 cluster on EKS with HTTP segment/task discovery, mounted the existing 46 TB S3 segments via an isolated PostgreSQL metadata clone, and used MSQ SQL to compact recent intervals.

Historical re-ingest needed46 TB → 0 TB
Segment load handoff time42s → 3.4s

1. Green cluster common.runtime.properties: HTTP discovery & S3 kill-task lock during cutover

common.runtime.properties · HTTP discovery & S3 safety

# Replace legacy ZooKeeper segment/task announcements with HTTP discovery
druid.zk.service.enabled=true
druid.discovery.type=curator
druid.serverview.type=http
druid.coordinator.loadqueuepeon.type=http
druid.indexer.runner.type=httpRemote

# Write new Green segments to an isolated S3 prefix while reading legacy Blue paths
druid.storage.type=s3
druid.storage.bucket=prod-druid-deepstore
druid.storage.baseKey=druid/green-v30/segments

# CRITICAL: Keep automated kill tasks OFF while Blue and Green share historical S3 files
druid.coordinator.kill.on=false

2. Multi-Stage Query (MSQ) SQL backfill with range partitioning and DataSketches

druid msq sql · historical interval backfill & compaction

REPLACE INTO "telemetry_events" OVERWRITE
WHERE "__time" >= TIMESTAMP '2026-10-01 00:00:00' AND "__time" < TIMESTAMP '2026-11-01 00:00:00'
SELECT
  TIME_FLOOR("__time", 'PT1M') AS "__time",
  "tenant_id",
  "service_name",
  SUM("request_count") AS "request_count",
  DS_THETA("user_id") AS "unique_users_theta"
FROM TABLE(EXTERN(
  '{"type":"s3","uris":["s3://prod-datalake/events/2026/10/"]}',
  '{"type":"parquet"}'
))
GROUP BY 1, 2, 3
PARTITIONED BY HOUR
CLUSTERED BY "tenant_id", "service_name"

Ways to work together

How to engage JusDB for an Apache Druid migration

Start with a read-only upgrade and compatibility assessment, commission a turnkey Druid migration or version upgrade project, or retain post-cutover SRE coverage.

Turnkey Druid migrationThis page

Rehearsed cutover with parity verification.

Fixed-scope execution covering target cluster buildout, S3 metadata mounting or MSQ backfill, dual Kafka streaming, and shadow query replay.

Migration paths we execute end-to-end

  • Druid 0.x/20.x to Druid 30+/38
  • Imply Polaris to / from Kubernetes
  • Shared S3/GCS metadata clone
  • ES / Warehouse to Druid MSQ
  • Druid to Pinot / ClickHouse
Free migration assessment

One Druid cluster audited for blockers.

We inspect your Druid version, extensions, metadata schema, S3/GCS segment layout, and Kafka supervisors, returning a written cutover plan.

What we check before you upgrade or migrate

  • ZK vs HTTP discovery & extension loadList compatibility
  • S3/GCS deep-store segment sharing & metadata DDL changes
  • Roll-up, v5 nested JSON & MSQ backfill opportunities
Post-cutover Druid SRE

Keep the new Druid cluster healthy.

Ongoing Prometheus monitoring, auto-compaction tuning, metadata DB maintenance, and incident response under a 24x7 support agreement or in covered business hours.

  1. Burn-in watchavailable where your service agreement includes it
  2. 15 minP1 initial-response target
  3. Rollback gateBlue cluster kept warm
Evaluation Vector
JusDB DBRE
In-House DBALegacy AgencyDeveloper Generalist
Source Schema to Druid Columnar & Rollup TranslationTranslates relational, time-series, or Elasticsearch schemas into optimized Druid datasources, configuring timestamp partitions, dimension dictionaries, bitmap indices, and rollup metric sketches.Performs 1:1 relational schema copy; retains millisecond timestamps and un-rolled string dimensions, multiplying segment storage footprint by 20x.Flattens source tables into string-heavy schemas without bitmap indices or metric aggregators, resulting in severe Historical query degradation.Omits segment granularity specifications, creating unbalanced interval ranges and broken time-boundary partition pruning.
Kafka/Kinesis Dual-Piping Streaming IngestionDeploys dual-piped Kafka or Kinesis indexing supervisors with synchronized consumer group offsets, exactly-once ingestion guarantees, and dead-letter queue monitoring during cutover.Implements unmonitored point-to-point dual-writes from application code, causing silent record drops and offset divergence during transient network blips.Relies on scheduled batch polling scripts to mirror streaming data, introducing multi-hour analytical data freshness lag during migration transitions.Connects target Druid supervisors without consumer group isolation, stealing partition consumption leases and breaking legacy source ingestion.
Parallel Historical Segment Batch IngestionExecutes parallel native batch indexing tasks (index_parallel) reading from cloud object stages, tuning task slots, maxNumConcurrentSubTasks, and memory buffers for rapid multi-terabyte backfills.Submits single-threaded batch tasks that run sequentially for weeks, frequently timing out and re-starting from the beginning upon transient failures.Pushes multi-year historical archives through real-time HTTP ingestion endpoints, saturating MiddleManager task queues and stalling live streaming data.Launches unthrottled batch backfills during business hours, exhausting Overlord task queues and starving production real-time supervisors.
Segment Deep Storage Validation & ChecksummingPerforms cryptographic checksum validation, segment descriptor verification, and atomic deep storage synchronization across cloud storage buckets prior to promoting historical tiers.Assumes successful task completion guarantees segment integrity without auditing sys.segments or verifying deep storage object availability.Manually moves local segment directories between instances without updating Coordinator metadata catalogs, corrupting cluster state.Skips deep storage verification; discovers corrupt or missing segment chunks only after terminating source legacy databases.
Analytical Query Semantic & Result ParityReplays production shadow query traffic, verifying exact numerical parity on aggregations, percentile approximations (Datasketches HLL/Theta), and Calcite SQL semantics against source systems.Runs manual spot queries comparing top 10 rows, failing to detect subtle divergences in floating-point math, null handling, or timestamp timezone truncation.Assumes query parity based solely on successful HTTP 200 responses without inspecting returned result sets or aggregation precision.Rewrites complex analytical queries blindly, introducing arithmetic discrepancies in financial and operational reporting dashboards.
Rehearsed Cutover & Rollback SafetiesExecutes rehearsed low-downtime cutovers with staged DNS/proxy routing, dual-run shadow validation, and a rollback path back to legacy systems agreed in the SOW.Executes high-risk hard cutovers during off-hours without rollback gates, forcing emergency all-night debugging when application queries time out.Switches application traffic without warming Historical segment caches, triggering severe cold-start query latency spikes and cascading HTTP 504 gateway timeouts.Decommissions source database instances immediately upon initial cutover, leaving zero recovery options when unpredicted production bugs surface.

Source engines, streaming buses, and target platforms we migrate

For procurement and data platform security teams

Mutual NDA first, read-only deep-store safety, and written cutover plan

We execute Druid migrations inside your VPC and cloud boundary. Automated kill tasks remain locked off during shared S3/GCS mounts, and every step is approved by your team before the maintenance window.Raguraman, Head of DBSRE · Allen D, Principal Engineer
  • Mutual NDA
  • Written migration plan
  • Named engineers
  • Least-privilege IAM & DB grants
  • NDA before access

    Signed before any cluster or metadata review. The initial scoping call requires no credentials.

  • Written cutover runbook

    Metadata clone steps, S3 prefix isolation, parity checks, and rollback gates agreed in writing.

  • Least-privilege access

    Read-only source audit access; scoped S3/GCS and metadata DB roles through your bastion or VPN.

  • Runbooks & SQL you keep

    All MSQ backfill scripts, `runtime.properties` configs, and parity runners stay in your Git repository. Meet the JusDB team.

JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12). Read the stated status.

Technical FAQ

Apache Druid migration & upgrade common questions

Answers on multi-version upgrades, ZooKeeper-to-HTTP discovery, shared S3/GCS segment mounting, Imply Polaris transitions, and MSQ SQL backfills.

Still have a question?

Ask it on a scoping call. No production access needed.

Book a 30-min scoping call (opens Google Calendar in a new tab)

How do you upgrade Apache Druid across multiple major versions without downtime?

For single-version hops, we execute a staged rolling upgrade (`Overlord to Coordinator to Historical to MiddleManager/Indexer to Broker to Router`) after validating extensions and metadata DDL in staging. When jumping across many versions (such as Druid 0.19/0.22 to Druid 30+/38), we recommend a Blue/Green cluster migration: we clone the PostgreSQL/MySQL `druid_segments` metadata with automated kill tasks disabled, mount the existing S3/GCS segments on the new cluster, dual-stream from Kafka, and flip Broker traffic once parity is verified.

How do you migrate from ZooKeeper segment/task discovery to HTTP discovery in modern Druid?

Modern Druid still uses ZooKeeper for Coordinator and Overlord leader election, but replaces ZooKeeper-based segment announcements (`druid.serverview.type=batch`) and task runner queues (`druid.indexer.runner.type=remote`) with direct HTTP calls (`http` and `httpRemote`). This eliminates ZooKeeper znode bottlenecks on large clusters. We configure and test the HTTP discovery properties in staging or on the Green cluster before cutting traffic over.

Can a new Druid cluster reuse our existing S3 or GCS deep storage segments?

Yes. Because Druid segments in S3 or GCS are immutable files referenced by URI in the metadata database (`druid_segments`), a new Green Druid cluster can read existing historical segments directly from object storage. To prevent the two clusters from interfering with each other, we disable `druid.coordinator.kill.on` on both clusters during the migration and configure a separate S3/GCS prefix (or bucket) for new segments written by the Green cluster.

How do you migrate between self-managed Apache Druid and Imply Polaris?

When migrating between self-managed Druid (on VMs or Kubernetes) and Imply Polaris, we use dual-piped Kafka/Kinesis streaming for real-time events and export/re-ingest historical intervals via S3/GCS Parquet or Druid deep-storage segment files using Multi-Stage Query (MSQ) batch SQL. We validate row-count and DataSketch parity across all intervals before switching application endpoints.

How do you migrate workloads from Elasticsearch, Snowflake, or BigQuery into Apache Druid?

Teams often move customer-facing or operational dashboards from Elasticsearch or cloud warehouses into Druid to achieve sub-second slice-and-dice latency and lower per-query compute costs. We design a Druid ingestion schema with MINUTE/HOUR roll-up and Apache DataSketches, backfill historical data from S3/GCS using Druid's Multi-Stage Query (MSQ) engine (`REPLACE INTO ... SELECT`), and connect Druid's Kafka/Kinesis supervisor to live event streams.

Can you also migrate from Apache Druid to Apache Pinot or ClickHouse?

Yes. Because JusDB engineers operate Apache Druid, Apache Pinot, and ClickHouse in production, we give objective architectural guidance. If your workload evolves to require primary-key real-time Upserts (Pinot) or wide-table ad-hoc SQL joins without roll-up constraints (ClickHouse), we design and execute the cross-engine migration end to end.

How do you prevent gaps or duplicates between historical backfills and live Kafka streams?

Druid's MVCC timeline architecture makes seamless handoffs straightforward: we start the Kafka supervisor first so it begins publishing segments from timestamp `T0` onward, and then run an MSQ or native batch `OVERWRITE` job for all intervals prior to `T0`. Any partial streaming hour at the boundary can be atomically overshadowed by a batch segment once the hour closes.

What are your initial-response targets during a Druid migration window?

Initial-response targets are 2 to 4 hours during covered business hours, Mon–Fri 09:00–18:00 IST (UTC+5:30). Where your service agreement includes 24x7 on-call, the initial-response target for P1 incidents is 15 minutes. Targets are not resolution guarantees.

Next step

Talk to an engineer about your Apache Druid migration or upgrade

Tell us your current Druid version, deep-storage size, and target environment. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance, subject to availability: mutual NDA before read-only access, a prioritized report within one week after access is ready, and no obligation.

NDA before access · read-only by default · written scope first