Connect Cloud Storage
Configure Zingg to read from and write to cloud object storage including AWS S3, Azure Blob Storage, and Google Cloud Storage.
Zingg can use cloud storage as both a data source and output destination. The JSON config and Python API sections below show how to connect to each storage platform. Available in all editions.
Prerequisites
S3 uses the s3a:// path protocol and requires two Hadoop AWS JARs on the Spark classpath.
Before connecting, complete these steps:
Create S3 bucket and folder (e.g. bucket:
zingg28032023, folder:zingg)Export credentials.
export AWS_ACCESS_KEY_ID = <access key id>
export AWS_SECRET_ACCESS_KEY = <access key>If MFA enabled:
export AWS_SESSION_TOKEN = <session token>Download Hadoop AWS JARs via Maven and set in
zingg.conf.
spark.jars=//hadoop-aws-3.1.0.jar,
//aws-java-sdk-bundle-1.11.271.jar
Python API - Community
from zingg.client import*
from zingg.pipes import*
schema = "field1 string, field2 string"
inputPipe = CsvPipe("s3Input", "s3a://your-bucket/path/to/input.csv", schema)
args.setData(inputPipe)
outputPipe = CsvPipe("s3Output", "s3a://your-bucket/path/to/output")
args.setOutput(outputPipe)Python API - Enterprise
JSON Config
Supported file formats
Parquet
Avro
JSON
CLI commands
On Google Cloud Storage, data lives in GCS buckets accessed via the gs:// path format. Use gs://<bucket-name>/<path-to-file> to connect Zingg to your bucket. All formats — CSV, Parquet, JSON, Avro, Delta — are available in both Community and Enterprise.
Python API - Community
Python API - Enterprise
JSON Config
Setting a Spark checkpoint on GCS
For long-running Zingg jobs on Spark (especially on Dataproc), set a Spark checkpoint directory in GCS so Spark can recover state and manage memory during the entity resolution process:
The checkpoint directory is a Spark feature, not a Zingg-specific configuration. It provides Spark with persistent storage for intermediate computation metadata during multi-stage jobs. Recommended for any large-dataset Zingg run on Dataproc.
Supported file formats on GCS
GCS supports all standard Spark formats. Replace format and the path suffix in the props.
Parquet
JSON
Avro
Last updated
Was this helpful?