Amazon EMR alternative for on-premises Hadoop and Spark

If big data processing must stay in your own data centers, Amazon EMR cannot run there. Self-hosted Apache Spark, Trino and Iceberg on owned hardware can, with an object store in place of S3.

On this page

Why an Amazon EMR alternative for on-premises Hadoop and Spark is a residency decision

If a regulator, contract or internal policy requires big data processing to stay in your own data centers, Amazon EMR cannot meet that requirement because it runs only in AWS, on EC2, EKS or its serverless option. The replacement is self-hosted Apache Spark, Trino and Apache Iceberg tables on hardware you own, with an S3-compatible object store in place of S3 and HDFS. For each layer, the candidates are Spark for batch and streaming, Trino for interactive SQL, Iceberg for table format, and Ceph RADOS Gateway, SeaweedFS, Garage or MinIO for storage. The engines EMR runs are open source, and Spark is licensed under the Apache License 2.0, so the work is less about the engines and more about operating them: hardware lifecycle, upgrades, security patches and the on-call coverage that EMR currently absorbs.

Residency is a decision about where every copy of the data lives, not only where query results land. Map each location: object storage, the table catalog, Spark's shuffle and spill directories, logs and backups. Spark ships without a catalog, notebook workspace or access control layer, so you must choose a catalog such as Hive Metastore or an Iceberg REST catalog and an access model for Trino, which supports file-based rules, Apache Ranger or Open Policy Agent. If you enable Trino's TASK fault-tolerant execution for large batch queries, its exchange manager must spool to an object store, so that store also falls inside the residency boundary. Ask your auditors which controls they will test and map each one to a component before you size hardware.

Choose object storage carefully. MinIO is a common S3-compatible choice, but its community repository is archived and no longer maintained, the community server is licensed under AGPLv3, and the community edition is distributed as source only, with best-effort support. Confirm with counsel whether AGPLv3 obligations fit your use, and test Ceph RADOS Gateway, SeaweedFS and Garage against your own workload. Cost moves from the EMR uplift to hardware, data center space, power, storage and the platform staff who run them. Before you commit, ask each vendor or integrator for a written scope covering upgrades, backups, support hours and who patches the catalog, object store and query engines.

What an on-premises requirement imposes on the stack

Keeping big data processing in your own data centers means every layer that AWS normally supplies becomes your responsibility. The cards below cover the five layers that must be chosen, operated and evidenced once EMR, S3 and Glue are no longer available.

Compute on owned hardware

Spark and Trino do not bring their own machines, so you must choose a cluster manager and a host platform. Spark supports its standalone manager, Hadoop YARN and Kubernetes, and the driver coordinates executors on worker nodes. Trino expects a 64-bit Linux host and a Java runtime, with one coordinator and separate workers. Check whether your hardware and operations team will run Kubernetes or prefer YARN or standalone mode, since that choice drives upgrades, patching and capacity planning.

Spark cluster overview

Object storage replacing S3

EMR reads and writes table data through EMRFS against S3, and that storage layer disappears on premises. Trino queries data through connectors and does not hold its own storage, so you need a self-hosted S3-compatible store for Iceberg or Delta files. Before choosing MinIO, confirm its current status, because the community repository is archived and its license is AGPLv3. Compare alternatives such as Ceph RADOS Gateway, SeaweedFS and Garage against your durability and erasure coding requirements.

Table catalog replacing Glue

On AWS, the Glue Data Catalog or a Hive metastore tells engines which tables exist and where their files are. On premises you must run that catalog yourself. Trino's Iceberg connector works with Hive Metastore, AWS Glue, JDBC, REST and Nessie catalogs, so pick one, host it, back it up and make sure Spark and Trino point at the same catalog. Treat catalog loss as a serious incident, since data files alone do not describe the tables.

Authentication and access control

EMR relies on IAM roles and Lake Formation style permissions, which have no direct on-premises equivalent. Trino supports password file, LDAP, OAuth 2.0, Kerberos, certificate and JWT authentication, and file-based, Apache Ranger or Open Policy Agent access control. Spark has no catalog or access layer of its own, so Spark jobs need the same identity and table permissions enforced through the catalog and storage. Document who can read which tables, and test that a denied user cannot reach them through Spark as well as Trino.

Trino security docs

Fault tolerance for batch jobs

A long Spark or Trino batch job that fails near its end can waste hours of compute, and on premises that cost is hardware time you already own but cannot recover. Trino's fault-tolerant execution is off by default and must be enabled with a QUERY or TASK retry policy. The TASK policy suits large batch queries, but it needs an exchange manager that spools intermediate data to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Confirm which spool target your on-premises store supports before relying on retries.

Fault-tolerant execution docs

Which open-source options meet an on-premises constraint

This table compares the three building blocks of an on-premises replacement for EMR: Spark on Kubernetes or YARN, Trino with the Iceberg connector, and object storage through MinIO or Ceph RADOS Gateway. Read each row for how the option meets the data-residency constraint and what you must add or confirm before choosing it.

OptionHow it meets the on-premises constraintTrade-offs to confirm
Keep Amazon EMRNot an on-premises option. Only viable if the workload and its data are permitted to stay in AWS.Confirm with your data protection and compliance owners whether AWS hosting is allowed for this data class.
Apache Spark on Kubernetes or YARNRuns on your own hardware under Apache-2.0, with Kubernetes or Hadoop YARN as the cluster manager.Spark has no notebook workspace, job scheduler UI, catalog or access control of its own, so you must add tools such as Airflow, JupyterHub and a table catalog.
Apache Spark Kubernetes OperatorAn Apache-2.0 subproject that manages Spark applications on Kubernetes through the operator pattern.Confirm the operator version fits your Spark release, since Spark 4 is built with Scala 2.13 and has dropped Scala 2.12.
Trino with the Iceberg connectorQueries Iceberg tables in your own storage under Apache-2.0, with time travel, schema evolution and MERGE support.Trino queries data in place and needs a separate catalog such as Hive Metastore, Nessie or an Iceberg REST catalog. Iceberg format version 3 is experimental.
Trino connectors to other sourcesThe connector list includes Hive, Delta Lake, Hudi, PostgreSQL and others, so on-premises sources can be queried alongside the lakehouse.Each connector has its own security and version behavior. Test the connectors your sources need before committing.
MinIO object storageS3-compatible storage that can run on your hardware, with the Operator path for Kubernetes.The minio/minio, minio/operator and minio/mc repositories are archived, and the community server is AGPLv3 with source-only distribution. Review AGPLv3 obligations and the AIStor options with counsel.
Ceph RADOS GatewayS3-compatible interface over a Ceph cluster that you operate on owned hardware.Requires operating a Ceph cluster, which is a distinct skill set from the Spark and Trino teams. Confirm the S3 API features your Iceberg and Spark jobs use.

Where Amazon EMR does not meet an on-premises constraint

Amazon EMR runs in AWS, so it cannot place compute in your own data centers. EMR launches clusters on EC2, runs on EKS or uses its serverless option, and all of these execute inside AWS accounts and regions. If a regulator, contract or internal policy requires that Spark executors, Trino workers and the data they read stay on hardware you own or lease in your own facilities, EMR in its standard form does not satisfy that rule regardless of how it is configured. The question to settle first is whether the rule governs where the data is processed, where it is stored, or both, because that answer decides whether a hybrid placement is enough or whether the whole pipeline must move.

The engines themselves are not the constraint. Apache Spark and Trino are both Apache-2.0 projects, so the same engines can run on your own Kubernetes or bare metal nodes. What the rule really governs is the managed layer around them: the EMR release builds, EMRFS, the AWS-hosted control plane and the storage path into S3. Before you commit to an exit, list which of these your jobs depend on and which residency obligation each one touches. Ask AWS in writing whether any outpost or hybrid option is offered for EMR, which AWS regions or local zones satisfy your rule, and whether the rule itself accepts a cloud region located in your jurisdiction. Those answers may keep EMR in scope for some workloads and remove it from others.

How to deploy Spark, Trino and Iceberg on owned hardware

This sequence moves big data processing onto your own hardware in an order that keeps each layer testable before the next one depends on it. The end state is object storage, an Iceberg catalog, Spark and Trino running against the same tables, with access control and upgrade habits in place.

  1. Size and provision the hardware

    The platform team, with input from storage and network administrators, sizes compute nodes, object storage nodes, drives and the network fabric against the workloads the organization plans to run. Confirm whether the data center will host Kubernetes control planes, the object store and the query engines on shared or dedicated hosts, since that decision drives node counts. Hardware, power, cooling, rack space and support contracts are one-time purchases or leases, while maintenance and replacement parts recur. Done when every node is racked, networked, running a supported Linux distribution and passing burn-in and disk health checks.

  2. Deploy erasure-coded object storage

    The storage team deploys an S3-compatible object store to replace S3 and HDFS, using the MinIO or Ceph RADOS Gateway documentation for erasure coding layout, drive counts and failure tolerance. Confirm the license terms first: the MinIO community server is released under AGPLv3, its community repositories are archived, and its README points to AIStor editions for supported distributions, so check that choice against your legal and support requirements. Create the buckets for raw, curated and Iceberg data, enable TLS and test put, get and multipart uploads with a standard S3 client. Done when a simulated node or drive failure leaves objects readable and the cluster heals as documented.

  3. Set up the Iceberg catalog

    The data platform team selects a catalog that Spark and Trino both support, such as an Iceberg REST catalog or Hive Metastore, and connects it to the object store with dedicated service credentials. Trino's Iceberg connector works with Hive Metastore, AWS Glue, JDBC, REST and Nessie catalogs, so confirm the catalog choice against the connectors you plan to use. Back the catalog database with a backed-up relational database. Done when a test table can be created by one engine, read by the other, and survives a catalog restart.

  4. Deploy Spark on Kubernetes with the operator

    The platform team installs the Kubernetes cluster and deploys the Apache Spark Kubernetes Operator, an Apache-2.0 subproject that manages Spark applications through the operator pattern. Spark itself has no notebook, scheduler UI, catalog or access control, so decide which tools cover those roles, such as JupyterHub and Apache Airflow, and pin the Spark image version. Spark 4 is built with Scala 2.13 and has dropped Scala 2.12, so check job code before upgrading. Done when a sample job reads and writes an Iceberg table through the catalog and completes with logs shipped to your monitoring stack.

  5. Deploy Trino with Helm and a dedicated coordinator

    The query platform team deploys Trino from the official Helm guide on Kubernetes, running a dedicated coordinator with separate worker pools. Trino's deployment documentation requires a 64-bit Linux host and a 64-bit Java 25 runtime at minimum 25.0.1, so verify the base image before deployment. Configure the Iceberg catalog and any Snowflake, BigQuery or Redshift connectors needed during migration. Done when a query joins Iceberg tables across catalogs and the coordinator reports healthy workers.

  6. Configure authentication and access control

    The security team chooses how users authenticate to Trino, from password file, LDAP, OAuth 2.0, Kerberos, certificates or JWT, and selects file-based access control, Apache Ranger or Open Policy Agent for authorization. Apply the same identity model to Spark jobs and the object store, and restrict service account permissions to the buckets they need. Enable audit logging and retain query records according to your policy. Done when a test user can see only the tables granted to them, and a denied query is recorded in the logs.

  7. Enable fault-tolerant execution with an S3-compatible spool

    For large batch queries, the query platform team enables fault-tolerant execution. Trino's documentation states it is off by default and is enabled with a QUERY or TASK retry policy, and the TASK policy, recommended for large batch queries, needs an exchange manager that spools to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Point the spool at the on-premises object store, set a lifecycle rule to expire spooled data, and test a query with an induced worker failure. Done when the induced failure is retried and the query returns the same result as an unfailed run.

  8. Plan upgrades and patch cadence

    The platform owner schedules upgrades using the release cadences each project publishes. Spark maintains major and feature branches for 6 months, plans feature releases quarterly from 4.3.0, and treats the last release in each major line as an LTS maintained for 18 months, with the 3.5.x extended LTS ending in November 2027 with security fixes only. Trino publishes releases frequently, with release 484 dated October 15, 2026, so track the release notes and test each upgrade in a staging cluster. Done when a written upgrade runbook names owners, test jobs and rollback steps for Spark, Trino, the operator, the catalog and the object store.

How the on-premises parts connect inside the data center

The diagram starts with analysts and client tools inside the corporate network, then shows the two query paths: Spark jobs through a driver and executors on Kubernetes, and SQL through a Trino coordinator and workers. Both engines read Iceberg tables through a shared table catalog, and the Parquet data sits in S3-compatible object storage such as MinIO or Ceph RADOS Gateway. The dashed boundary marks what stays inside your data center. Check that every hand-off, including catalog access and storage credentials, crosses only links you control, and that any AWS service you keep outside the boundary is named explicitly.

Query and job paths from users to Parquet storage inside the data center.

Evidence residency reviews and auditors ask for

A residency review tests where data is stored, who can reach it and how the platform is kept current. The items below are the records an assessor usually asks to see for a self-hosted Spark, Trino and object storage stack that replaces Amazon EMR. Confirm the exact evidence each framework requires with your assessor, since DeployOpen prepares evidence but does not issue audit reports.

Data location and egress diagrams

Produce network diagrams that show every Spark executor, Trino worker, catalog service and object storage node inside your own data centers, with no route to AWS endpoints. Include the firewall rules that block outbound S3 traffic and the logs that prove no such traffic occurred. Ask your assessor whether they want the diagram, the rule export or both, and how often they expect it refreshed.

Trino and Spark access logs

Keep authentication configuration for Trino, such as the password file, LDAP, Kerberos, certificates or JWT settings, alongside sample logs that show who authenticated and when. For Spark, retain the cluster manager's submission and driver logs for jobs that touched regulated data. Confirm with your assessor how long these logs must be kept and where they must be stored.

Catalog and job permission records

Export the access control rules in use, whether file-based, Apache Ranger or Open Policy Agent for Trino, together with the permissions on the table catalog and the Spark job scheduler. Record who approved each grant and when it was last reviewed. Auditors often test a sample of users against these records, so the export must match what the running system enforces.

Object storage encryption and erasure coding

Document the encryption-at-rest and in-transit settings for the object storage that replaces S3, along with the erasure coding layout chosen for each pool and the drive failure tolerance it gives. Include key management ownership, since the key custodian is part of the evidence. Confirm the expected format of this record with your assessor, because some reviewers want configuration files and others want a written design.

Backup and restore test results

A backup policy only counts once a restore has been performed. Keep dated restore tests for the Iceberg tables, the catalog metadata and the object storage buckets, recording the time taken and whether row counts and checksums matched. Include tests for catalog loss, not just data loss, because a lakehouse cannot be read without its metadata. Ask your assessor how often a restore test must be repeated.

Patch and upgrade record

Maintain a change log covering Spark, Trino, Java, the object storage server and the catalog, with the version in place, the date of each change and the approval behind it. For Spark, track which release line you run and when its support window ends, since maintenance schedules differ between feature and LTS branches. Auditors use this record to judge whether vulnerabilities were handled in time.

Spark versioning policy

Keeping EMR or moving on-premises: when each path fits

This path fits workloads that are allowed to stay in AWS, where the main driver is operating effort rather than residency. EMR keeps Spark, Hive and related engines running on EC2, EKS or its serverless option, and the data usually stays in Amazon S3 with the Glue Data Catalog or a Hive metastore. Keeping EMR means you keep the AWS storage and catalog model and accept the EMR charge on top of compute.

  • Storage: Data stays in S3, so there is no object store to build, patch or size yourself.
  • Catalog: Glue or a Hive metastore continues to serve table definitions, and nothing needs to be re-registered.
  • Operations: AWS handles cluster provisioning and much of the Spark runtime packaging, while your team still owns job code, permissions and upgrades.
  • Cost to compare: The EMR uplift, EC2 or serverless compute, EBS and S3 charges, and Glue catalog requests. Use the Amazon EMR cost page in this section's sibling pages to build the comparison rather than relying on list figures.
  • Recurring versus one-time: Most EMR charges recur with usage, so the comparison depends on how many hours clusters actually run.

Before you commit, confirm with your compliance team that the data classification and AWS region settings meet your current policy.

Questions buyers ask before moving Spark on-premises

How much does a self-hosted Spark cluster cost compared with Amazon EMR?

A self-hosted cluster removes the EMR charge that sits on top of the underlying compute, but it adds cost lines that EMR currently absorbs. Compare the cost of your own hardware or leased capacity, power, data center space, networking, support contracts for the hardware, and the platform engineering time needed to run Spark, Trino, the table catalog and object storage. The EMR uplift is a fixed per-instance-hour charge, so the saving depends on how many hours your clusters run and how fully your hardware is used. Ask any integrator for a quote that lists hardware, licenses (Apache Spark and Trino are Apache-2.0 with no license fee), staffing, support and recurring operations as separate lines, so you can see which costs are one-time and which recur.

How long does it take to move Spark workloads off EMR on-premises?

The duration depends on how many jobs you run, how much of your code depends on EMR-specific behavior, how your Hive metastore or Glue tables will be moved, and how much hardware you still need to install. A typical sequence covers sizing the hardware, building the object storage and catalog, porting and testing job output, running old and new pipelines in parallel, and then cutting over. Each step has its own dependencies, so no single figure applies to every environment. Ask for a written plan with milestones, a test approach for comparing job output, and a clear statement of which items are in scope before work starts.

What does an on-premises Spark platform need from our internal team?

Running Spark on your own hardware means your team owns functions that EMR handles for you. Apache Spark has no notebook workspace, job scheduler UI, catalog or access control layer of its own, so you need to assemble and maintain tools for those roles, such as JupyterHub, Apache Airflow and a table catalog. Your team will also handle cluster managers (standalone, Hadoop YARN or Kubernetes), patching, monitoring, backups, capacity planning and version upgrades. Check whether your staff already runs Kubernetes, Kerberos or LDAP, object storage and an orchestrator, because these skills determine how much you must hire or contract for.

Can our own engineers build and run this platform without an outside partner?

Many organizations with strong platform and data engineering teams can run a self-hosted Spark and Trino stack in-house, especially if they already operate Kubernetes and object storage. The harder parts are usually security configuration, identity integration, access control, backup of table metadata, and the first migration of production jobs. If those skills are thin, an implementation partner can handle a fixed-scope build, hardening and documentation, then hand over runbooks. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, and it prepares evidence for compliance reviews without issuing audit reports. Decide based on an honest skills inventory and a written scope.

Does MinIO being archived change the choice of on-premises object storage?

Yes, it changes the risk profile and should be part of the decision. The minio/minio repository is no longer maintained and is archived, and the MinIO README points to AIStor Free and AIStor Enterprise as alternatives. The community server is licensed under AGPLv3, which requires that commercial or proprietary use be validated against its obligations, and the community edition is distributed as source only, with its last tagged release dated October 16, 2025. Community support is best effort, with SLA-backed support available only through AIStor. Before choosing MinIO, confirm the license position with counsel, decide whether you accept an unmaintained component, and compare Ceph RADOS Gateway, SeaweedFS and Garage, which are also S3-compatible options.

What drives on-premises Spark costs up or down?

Four factors move the total most. Utilization matters because idle hardware still costs money while EMR bills only for running instances. Staffing matters because platform engineers, on-call coverage and upgrade work recur every year. Storage design matters because replication or erasure coding multiplies raw capacity, and object storage performance depends on drive and network choices. Compliance scope matters because evidence collection, access reviews and backups add recurring effort. Reduce costs by sizing clusters to steady workloads, sharing a Spark and Trino platform across teams, and automating upgrades. Ask any quote to show the assumptions for utilization, replication factor and staffing so you can test them against your own numbers.

Which Spark and Trino versions should we plan around?

Plan around the maintained release lines and their support windows, not the newest release alone. Spark's versioning policy says feature releases move to a quarterly cadence starting with 4.3.0, and the last release in each major line is an LTS maintained for 18 months. The 3.5.x extended LTS ends in November 2027 with security fixes only, so it is a poor choice for a new long-lived platform. Spark 4 is built with Scala 2.13 and dropped Scala 2.12, which affects existing jobs. Trino releases come roughly monthly and need a 64-bit Java 25 runtime. Confirm current versions and end-of-support dates on the official downloads and release pages before you finalize the design.

How the engagement is scoped and what your team provides

DeployOpen works to a fixed scope, agreed in writing before any work starts. For an on-premises move off Amazon EMR, the scope document should name the Spark version and build, the table format (Iceberg or Delta Lake), the object store that replaces S3 and the job orchestrator. Your team provides four inputs that drive most of the design: a hardware inventory covering compute nodes, disks, memory, network cards and the rack and power layout; the network rules between the Spark and Trino tiers, the object store, the metastore and any data sources; a classification of the data sets by sensitivity and residency requirement; and an inventory of every EMR job, step and notebook, with its schedule, inputs, outputs and owner. Ask for the inventory in the form it already exists (EMR step definitions, Airflow DAGs or cron entries) so nothing is reconstructed from memory.

The job inventory is the input most often incomplete, and it sets the size of the cutover work. Confirm which jobs depend on EMRFS behavior, on Glue or Hive metastore tables, on EMR-specific bootstrap actions, or on instance-profile credentials, because each of these needs a replacement before the job can run on owned hardware. Also confirm which jobs have a known-good output that can be compared during parallel runs. Hardware and network inputs decide whether a single cluster manager (Kubernetes, YARN or Spark standalone, as listed in the Spark cluster overview) fits your estate, and they decide whether your object store has enough nodes and drives to meet the durability you expect from S3.

Ongoing support after the fixed-scope phase is available as a retainer. Retainers typically cover upgrades to new Spark, Trino and object store releases, security patching, capacity reviews and on-call response, and they are priced against the scope agreed for that period. Ask for the retainer terms in writing, including who applies patches, how release notes are reviewed, and what happens when an upstream project ends maintenance for a line you run. Keep in mind that upstream support windows vary by project and release, so confirm the current support dates with each project before you commit to a version.

How DeployOpen deploys Spark and Trino inside your data centers

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including data centers and air-gapped networks. For an Amazon EMR alternative on owned hardware, that means scoping the Spark, Trino and table format stack, building it on the client's object storage and cluster platform, and handing over the controls and evidence the client's teams need to review it.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • The written scope lists which EMR jobs, Trino catalogs and table formats move, and which stay where they are
  • Scope covers the object storage choice, cluster manager, catalog, authentication and data handling decisions for your data center
  • Ongoing support, upgrades and continuous testing can be added as a retainer after handover

How we build

  • Deploy Spark on Kubernetes or your chosen cluster manager, with the Spark Kubernetes Operator where it fits your platform
  • Deploy Trino with a dedicated coordinator and workers, configured with the authentication and access control your policy requires
  • Connect Spark and Trino to an Iceberg or Delta Lake catalog on your own S3-compatible object storage
  • Test job output against the EMR baseline and review the security configuration before cutover

How we hand over

  • Deliver architecture, configuration and runbook documentation for the Spark, Trino, storage and catalog components
  • Provide evidence of access control, audit logging and data handling settings for your compliance and security teams to review
  • Walk your platform and data engineering staff through upgrades, backups and failure handling
  • Confirm with your auditors which controls and evidence they will ask for, since DeployOpen prepares evidence but does not issue audit reports

How we support

  • Upgrades follow the Spark and Trino release lines, which your team should confirm against the current release notes and support windows
  • Backups of object storage, catalog metadata and configuration are set up as part of the written scope
  • Retainers can cover upgrades, patching and continuous security testing of the data platform
  • Ask any provider, including DeployOpen, to state in the quote which support hours, response targets and exclusions apply

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.