Trino vs Apache Spark for GDPR and EU data residency

Both engines are self-hosted, so data location and GDPR duties sit with your organization. The choice turns on which data paths, connectors and evidence your assessor will test.

On this page

Trino vs Apache Spark for GDPR and EU data residency: which fits

Trino fits when the main need is interactive SQL over data that stays in your own EU storage and databases. Spark fits when the need is batch, streaming or machine learning pipelines that process that data under the same location duty. This page covers only the GDPR and EU residency angle, and the general comparison sits on its own page. Both engines are self-hosted Apache-2.0 software, so the operator carries the GDPR obligations and no vendor holds the data. Under the GDPR, the organization must be able to show where personal data is processed and how it is protected, and with both engines those answers come from your own clusters, storage and logs.

Start with transfers, because the engine is rarely the only risk. Trino's documented connector list includes 37 connectors, among them BigQuery, Snowflake and Redshift, which are managed services running in a vendor's cloud. A federated query that joins an EU table with a source outside the EU can move personal data to a third country, and Chapter V of the GDPR (Articles 44 to 50) governs that hop. Map every catalog file in etc/catalog and every Spark read and write path to a named location, then have legal confirm whether each destination needs a transfer mechanism. Next, confirm encryption in transit between clients, coordinator and workers, using the Trino TLS guide. Then confirm that query audit records are shipped to a store you control, such as an HTTP endpoint or a MySQL database through Trino's event listeners.

The decision turns on three questions. First, where do queries read and write? Trino reads data in place and returns results to the client, but a Spark job often writes intermediate and output tables back to storage, which creates another copy of personal data to inventory and delete. Second, which connectors reach sources outside the EU? Third, who operates the cluster? Trino's deployment guide describes a coordinator plus workers and a Helm path for Kubernetes, while Spark runs on clusters you manage. Whoever patches the engine carries the security-of-processing duty under Article 32, and the 3.5.x extended LTS ends in November 2027 with security fixes only, so choose a version line your team can keep current. Put the answers to these three questions in writing before you shortlist either engine.

How Trino and Apache Spark each meet GDPR as documented

This table compares what the Trino and Apache Spark documentation says about the GDPR duties an operator takes on when it self-hosts either engine. Read each row as a question for your own deployment, because the documentation covers the software and your configuration decides the outcome. The main takeaway is that this page does not treat either engine as certified, so the evidence must come from your own controls and records.

RequirementTrino as documentedApache Spark as documented
Data locationData stays where the operator runs the cluster and its storage. Residency depends on your placement choices.Data stays wherever the operator runs the cluster and storage. Residency depends on your placement choices.
Controller and processor dutiesThe operator is responsible for data protection duties and GDPR obligations.The operator is responsible for data protection duties and GDPR obligations.
Security of processing (Article 32)Review the security overview and TLS pages. Confirm authentication, authorization and encryption settings for your version.Review the security page. Confirm authentication, authorization and encryption settings for your version.
Audit trailDocuments an HTTP event listener and a MySQL event listener. Confirm where events are stored and who reviews them.Confirm which job, cluster manager and log sinks you will use before relying on any audit trail.
Transfers under Chapter VConnectors include BigQuery, Redshift and Snowflake, so one query can reach a source outside the EU. Map each catalog to its location.Reads whatever its jobs point to, so transfers depend on job code and source configuration.
Release currencyRelease 484 was published October 15, 2026. Java 25 is required, minimum 25.0.1.Version 4.2.0 was released July 14, 2026. The 3.5.x extended LTS ends November 2027, security fixes only.
Vendor attestationsNo vendor certification is cited here. Your organization must hold its own evidence.No vendor certification is cited here. Your organization must hold its own evidence.

What the software gives you and what the operator still owns

Neither project is named as a holder of personal data, because both are software your team deploys and runs in your own infrastructure. The cards split what each project documents from what your organization configures. Across all four, you still own the record of processing, the transfer register and the breach procedures.

Trino's documented security controls

Trino's security overview covers how clients, coordinator and workers authenticate and communicate, and its TLS page explains how to encrypt the connections between them. Event listeners can send query events to external systems, which gives you the raw material for an audit trail of who ran which query. Treat each documented setting as a claim to test: confirm the exact property names, defaults and behavior in the Trino version you deploy before writing it into your control evidence.

Trino security overview

Trino operator decisions

EU regions are your decision for the coordinator, the workers and the storage holding your lakehouse files, so keep all three inside the region your transfer analysis covers. Catalogs and connectors decide which sources a query can reach, so review each one and remove any that reach systems outside the approved locations. Retain and protect the query logs, which may hold query text and identifiers tied to personal data. Keep the Java runtime at Java 25 with a minimum of 25.0.1, and track Trino releases so the cluster stays patched on a schedule you document.

Trino deployment docs

Spark's documented security model

Spark publishes a security page that describes its security model, the features that protect communication and access, and the settings that control them. Its option set depends on the release, so the encryption and authentication options you rely on in one line may differ in another. Start with the release you plan to run, read its security page, and confirm each option in a test cluster before you cite it in your records. Spark runs in your infrastructure, so the data it processes stays where you place the cluster.

Spark security docs

Spark operator decisions

The cluster manager decides where executors run, so place it in EU infrastructure and document who can submit jobs to it. Shuffle and spilled temporary data land on worker disks and can outlive a failed job, so encrypt those disks and confirm the setting for your release. Set job-level access so each pipeline reads only the datasets it is approved for, and confirm what access a job inherits from the account that submits it. Manage retention of intermediate files in object storage and scratch space, since copies of personal data often outlive the final table.

Evidence an assessor asks for and how each side produces it

Trino evidence comes from the cluster you run, so assessors will expect artifacts exported from production and dated to the assessment period. Trino is Apache-2.0 licensed and self-hosted, so the coordinator, workers, catalogs and network paths are your records to produce and keep current.

  • Deployment diagram with EU boundaries: a current diagram of the coordinator, workers, catalogs and network paths, with each boundary labeled by country or region. Generate it from the live configuration where you can, not from the original design document.
  • TLS and authentication configuration: settings exported from the running cluster showing TLS for client and internal traffic and the authentication method in use. The Trino TLS guide lists the settings to check.
  • Event listener output to an EU sink: sample query events from an HTTP or MySQL event listener, showing they land in a store hosted in the EU with a retention period you set. Confirm the payload includes the fields your processing record needs.
  • Connector inventory with source locations: every catalog, its connector (the documentation lists 37 connectors), the system it points to and that system's region. Any non-EU entry goes into the transfer register.
  • Patch level against release 484: the deployed version compared with the 484 release line, published October 15, 2026, and the Java runtime version. Keep the release notes you reviewed and your upgrade plan with dates.

Confirm that every artifact is dated, traceable to the running cluster and can be reproduced on request.

Where does data cross the EU trust boundary in Trino and Spark?

The diagram starts with analysts and BI tools sending SQL to the Trino coordinator, which hands work to Trino workers that read EU object storage and EU databases. A Spark driver and its executors read the same EU storage and write curated tables back into it. Both engines send logs to one EU log sink. The only edge that leaves the EU is a Trino connector call to an external source, which needs a Chapter V transfer review before it is enabled. Check that the operator controls every node inside the EU boundary, and confirm exactly which data crosses that edge.

Data flow in one EU boundary, with the single external transfer edge marked.

Where EU residency breaks in practice: connectors, temporary files and logs

Federation is the first place where a deployment that looks compliant can move data out of the EU. Trino's connector list includes 37 connectors, among them BigQuery, Redshift and Snowflake, so one SQL statement can join a table in your EU lakehouse with a table in a source you placed elsewhere. The query text does not show where the second table is hosted. Before go-live, list every catalog in the Trino configuration, record the region and operator of each underlying system, and check which catalogs each analyst role can reach. Confirm this behavior and the access controls in the Trino release you run, because connector support changes between releases. Trino connector documentation

Intermediate data is the second gap. Spark writes shuffle and spill files to local disks on the worker nodes while a job runs, and both engines can hold results in caches. These paths carry personal data from the source tables, yet they are often missing from the data map and the retention schedule. For each cluster, record the scratch location set by spark.local.dir, whether the disks are encrypted, who can read them, and when files are removed, including after a failed job. For Trino, identify where any cache lives, how long it persists, and whether any spooled data goes to a storage service you have placed in the EU. Confirm each behavior against the versions you run, since cache and spill settings differ between releases.

Logs and audit trails are the third gap. Query text and job parameters can contain personal data, for example a customer identifier typed into a WHERE clause, so the event log belongs in the GDPR review. Trino's HTTP event listener and the MySQL event listener send query events to a sink you choose, and each sink has its own retention and access model. Decide which fields are recorded, whether literal values are masked before they leave the cluster, where the sink is hosted, and who can query it. Write the retention period into the processing record, then test that deletion actually runs. The same questions apply to Spark event logs and any history server you operate.

Configuring the chosen engine for an EU residency review

The sequence turns the engine you select into a configuration that a residency assessor can review, covering where compute and storage sit, which sources leave the EU, how access and logs are controlled, and how the data flow is documented and tested.

  1. Pin compute and storage to EU regions

    Record the region of the Trino coordinator and workers or the Spark driver, executors and cluster manager, plus every storage bucket, metastore and warehouse the engine reads or writes. Set those locations in the deployment configuration so none of them can move to a non-EU region without a change record. The platform engineers do this with the infrastructure team. The output is a region inventory checked against the cloud account settings. Confirm with your cloud provider which regions and managed services are located in the EU before you pin them.

  2. Inventory connectors and flag non-EU transfers

    List every connector or data source the engine can reach, including catalogs, metastores, SaaS sources and any endpoint hosted outside the EU, such as a vendor API or a monitoring service. Each item needs a named owner and a stated location. Mark every location outside the EU for a transfer review under Chapter V of the GDPR, which governs transfers to third countries. The output is a connector register with a transfer flag on each non-EU item and a review owner for each flag.

  3. Enable TLS, authentication and authorization

    Turn on TLS for client, coordinator and worker traffic in Trino, and for Spark, the encryption options in its security documentation, using certificates issued by your own certificate authority. Then set authentication and authorization with the methods the engine documents, and map groups to access rules that match the record of processing. Test each setting with a connection that should fail, such as a client without a valid certificate or a user without access, and keep the results. The output is a configuration set and test log that an assessor can read.

  4. Send audit logs to an EU sink

    Configure the engine to emit query and event logs through the event listener it documents, and route them to a logging store located in the EU. Trino documents HTTP and MySQL event listeners, so choose the one that fits your sink, then check which fields it records, including who ran each query and which catalog it used, against your evidence needs. Set a written retention period that matches your policy and restrict read access to the audit store. Spark logs follow its own configuration, so confirm where driver and executor logs land. The output is a sample from a test query that appears in the EU sink with the retention setting documented.

  5. Encrypt and locate intermediate data

    Find every place where the engine writes intermediate data, such as Trino spill files, Spark shuffle files, local scratch directories and temporary tables. Set those paths explicitly, since both engines can write temporary data to node-local disks, and confirm each one sits in an EU region. Then confirm which layer provides encryption at rest, the engine's documented options or the storage platform, and enable it. The output is a list of every temporary path with its region and encryption setting, checked on a running node.

  6. Write the data flow map and record

    Using the architecture diagram, write a data flow map that shows each source, the engine, each intermediate store, each output and the region of every hop. Turn the map into the record of processing activities the GDPR requires, listing purposes, categories of data, recipients and any transfers for each workload. Check every arrow on the map against the connector register and the storage list from the earlier steps so that nothing is missing. The output is one reviewed map and one record entry per workload, approved by the organization's data protection function.

  7. Test cross-region queries are blocked or logged

    Run a test query that reaches for data in a non-EU region, or a connector flagged in the second step, using a test account with the access rules from the third step. Confirm the engine blocks the query or the access appears in the EU sink with the matching log line. Record the query, the result and the log entry, and repeat the test after any configuration change. If the query succeeds and no log line appears, the setup is not ready for review. The output is a dated test record for the assessor. This sequence needs a written scope before any work starts, and the organization keeps the final sign-off on the configuration and the evidence.

What buyers ask before hiring help with GDPR and EU residency

Can our own team handle GDPR and EU residency work for Trino or Spark?

Yes, if your team already has the cluster operations, identity and logging skills this work needs. Both engines are self-hosted, so the operator carries the GDPR obligations for the cluster and its storage, and no vendor takes those duties on. Check these skills in-house: operating a distributed cluster and its upgrades, configuring TLS and authentication between coordinator, workers and clients, connecting SSO and role-based access to your identity provider, shipping query and audit logs to a store that stays in the EU, and keeping data flow documentation current for your records of processing. If one of these is thin, a fixed-scope engagement can fill the gap, but your team still has to run and own the result afterwards.

What makes GDPR and EU residency work take longer or cost more?

The main drivers are the number of data sources and clusters in scope, not the engine itself. Count the connectors and sources that sit outside the EU, since each one needs its own data flow, access review and transfer assessment under the rules in Chapter V. Trino documents 37 connectors, so the count of sources in use matters more than the engine choice. Then count clusters, because each one needs its own hardening, backup and evidence. Also check whether your records of processing are current, and whether query and access logs already reach an EU sink or still go to a log service in another region. A team with a clean source inventory and EU logging already in place has a much smaller job than one starting from scratch.

How long does a GDPR and EU residency engagement take?

The length depends on the written scope, which is agreed before work starts. Most engagements are fixed-scope, so scope, deliverables and timelines are set in writing before any work begins. Timing moves with the number of clusters, the number of sources outside the EU, the state of your records of processing, and how many review cycles your assessor expects. Ask for a timeline tied to a named list of clusters, sources and deliverables. Check which steps depend on your side, such as access to the identity provider, log pipelines and staff for review meetings. Confirm whether retesting after fixes is in the agreed scope. Ongoing upgrades and continuous testing are available as retainers if you want support after the initial work.

Does DeployOpen certify our Trino or Spark setup as GDPR compliant?

No. DeployOpen does not issue audit reports, attestations or certifications. It plans, implements and hardens the self-hosted platform inside your own infrastructure, then prepares the systems, controls and evidence your compliance and security teams will review. GDPR is enforced by independent national supervisory authorities, as set out in Article 51 and the rest of the regulation. If you need an independent opinion on a control set, that comes from an independent auditor or certification body. Ask that body in advance which evidence it accepts, so the work DeployOpen prepares matches what the assessor will test.

Does a vendor need a data processing agreement for Trino or Spark?

Neither Trino nor Spark is a hosted service, so the open-source software itself does not receive your data. The question is whether any paid contract puts personal data in front of a vendor or its staff. Both are self-hosted Apache-2.0 software, and the operator is responsible for GDPR obligations. If you buy a support contract, check whether the vendor will see data, such as logs, query text, configuration files or screenshots from a support session. Where it will, ask counsel whether a processing agreement is needed and which processor obligations in Chapter IV apply. Confirm the handling terms with counsel before any consultant or vendor gets access to production data.

What should a quote request for GDPR and EU residency work include?

A useful quote request lists what is in scope and what is not, so the price follows from written work. Include these items:

  • Scope: the clusters, environments, regions and data domains covered.
  • Engine versions: the Trino release you run (for example, release 484, published October 15, 2026) and the Spark line you run (for example, 4.2.0, released July 14, 2026).
  • Source inventory: every connector and data source, its location, whether it sits outside the EU, and how it authenticates.
  • Deliverables: records of processing inputs, access review outputs, log configuration, data flow diagrams and a control list mapped to your framework.
  • Retest and handover: the retest after fixes, the handover documents and the person on your team who owns each control afterwards.

DeployOpen does not publish a price list, so a quote follows from the written scope.

How DeployOpen prepares an EU residency review for either engine

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a GDPR and EU residency review of Trino or Apache Spark, the engine and its storage run where your team decides, and the evidence your compliance team asks for is prepared during the build. DeployOpen prepares systems and evidence for assessment but does not issue audit reports or certifications.

How we scope

  • The written scope names which engine, catalogs, connectors or cluster storage fall inside the residency review.
  • Scope also lists which regions, cloud accounts or data centers hold query data, logs and spill or intermediate files.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts; ongoing support is available as a retainer.

How we build

  • Trino runs on 64-bit Linux with Java 25 (minimum 25.0.1), following the documented coordinator and worker layout.
  • For Spark, the build pins one supported release line, noting that the 3.5.x extended LTS ends in November 2027.
  • Connectors, storage paths and TLS settings are configured to keep each data flow inside the agreed regions.

How we hand over

  • A data flow map showing every system, region and connector that touches residency-scoped data, with owners named.
  • Configuration records for access control, TLS, event logging and identity integration, with the Trino or Spark settings used.
  • Documentation mapping the operator's GDPR duties to Article 32 security, Articles 33 and 34 breach notice and Chapter V transfers.

How we support

  • Security testing of the deployed engine, connectors and access paths, reported with fixes for the residency review.
  • Patch and upgrade work runs as a retainer, since Trino and Spark both ship new releases on their own schedules.
  • Evidence refresh when the residency scope changes, such as a new region, connector or catalog.

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.