Documentation / How to: get started
How to run the suite with Apache® Spark
Turn on the optional Spark service for data lake exports and bulk loads of large files.
Before you start
- Who
- IT staff and data engineers.
- You need
- The Docker package (see How to install FHIR Vault Suite with Docker), 6 GB of memory for Docker and internet access for the first start of Spark.
- When
- You want to export the vault to Delta Lake, Apache Iceberg or Parquet tables, or load very large FHIR® exports. Everything else works without Spark.
Turn on Spark in the settings file
Add two lines to.env. The first builds Python and the Spark Connect client into the suite image; the second adds the server "Demo Spark" and two demo pipelines.SPARK_CLIENT=4.0 DEMO_SPARK_HOST=sparkStart with the Spark profile
The first start of Spark downloads its packages, which takes a few minutes.docker compose --profile spark up -d --buildCheck the server
In Pipelines > Settings, the Apache Spark server shows Working with the Spark version and the monitoring port.
Pipelines > Settings: the integration servers, the Spark client and the database drivers Follow it in the Monitor
Pipelines > Monitor > Apache Spark servers shows executors, tasks, memory and the jobs each pipeline started.
Monitor > Apache Spark servers: executors, tasks, memory and jobs
The resultSpark Connect answers at
sc://localhost:15002 and the Spark UI at http://localhost:4040. The demo pipelines "Demo data lake export" and "Demo bulk load (Spark)" are ready to run.