JSONL Singer target for local storage, S3 and Azure Blob Storage.
To install this Singer tap, you can download a prebuilt binary, or you can build it from source.
Setting | Required | Default | Description |
---|---|---|---|
bucket |
Yes | - | Blob storage bucket URL |
key_template |
No | {{.StreamName}}.jsonl |
Template string for file keys |
Storage | Example URL | Supported URL parameters |
---|---|---|
local | file:///path/to/directory |
See supported parameters |
S3 | s3://my-bucket |
See supported parameters |
Azure | azblob://my-container |
See supported parameters |
GCS | gs://my-bucket |
See supported parameters |
StreamName
Date
(YYYY-MM-DD)TimestampSeconds
Minute
Hour
Day
Month
Year
Example: {{.StreamName}}/{{.Year}}/{{.Month}}/{{.Day}}/{{.Hour}}/{{.Minute}}/{{.StreamName}}.jsonl
go build -o target-jsonl-blob
- Download the appropriate asset
- Allow execution of the downloaded binary
- Add a custom Meltano plugin to your project
- Run a pipeline
You can see the full list of assets in the release page: https://github.com/MeltanoLabs/target-jsonl-blob/releases/latest.
The gh
tool makes downloading an asset easy:
gh release download v0.0.4 \
-R MeltanoLabs/target-jsonl-blob \
-p '*darwin-amd64' \
--clobber \
-O target-jsonl-blob
chmod +x target-jsonl-blob
# meltano.yml
plugins:
loaders:
- name: target-jsonl-blob
namespace: target_jsonl_blob
executable: ./target-jsonl-blob
settings:
- name: bucket
label: Bucket
description: Target directory (local, S3, Azure Blob)
- name: key_template
label: Key Template
description: Template string for file keys
config:
bucket: file://./output/my-bucket
key_template: $MELTANO_EXTRACTOR_NAMESPACE/{{.StreamName}}.jsonl
You also need to ensure the local "bucket" exists:
mkdir output/my-bucket
meltano run tap-github target-jsonl-blob
-
Support GCS
Currently blocked by
cloud.google.com/go/storage@v1.16.1/storage.go:1416:53: o.GetCustomerEncryption().GetKeySha256 undefined (type *"google.golang.org/genproto/googleapis/storage/v2".Object_CustomerEncryption has no field or method GetKeySha256)
-
Build a lighter binary