Documentation / How to: Pipelines

How to bulk load large files with Apache® Spark

Load a FHIR® bulk export or other large NDJSON and JSON files into the raw vault.

Before you start
Who
Data engineers.
You need
pipelines:manage, an Apache Spark server, and read access for the cluster to the folder with the files.
  1. Add the pipeline

    Pipelines > Ingress > Add Ingress, then the tile Bulk load files (Apache Spark), the data source and the Spark server.
  2. Point to the files

    The folder as the cluster sees it, for example s3a://landing/fhir/hospital-a, the file kind (NDJSON or JSON, also gzip-compressed) and how many files per run.
    Bulk load files (Apache Spark): the folder with the files and the file kind
    Bulk load files (Apache Spark): the folder with the files and the file kind
  3. Set the identity of the data

    The FHIR server id and the record source are stored with every resource, as in the NiFi™ flows.
  4. Choose when it runs

    Every 15 minutes, hour or day, or only by hand. Each run takes only files it has not loaded before.
The resultThe cluster reads the files in parallel, splits Bundles, checks every resource and stages them; the suite loads them with the vault's own loader. Lines and resources that fail are kept with the reason.