Bento
Reference
Documentation for the S2 components for Bento is available at:
Getting started
We are going to take inputs from a number of S2 streams, process the records using Bento, and output the records merged into another S2 stream.
Prerequisites
Generate an S2 authentication token
Generate an authentication token by logging onto the web console at s2.dev and set the S2_AUTH_TOKEN
environment variable:
Install the S2 CLI
Install the S2 CLI and set the authentication token:
Install the Bento CLI
Setup
Create a new basin
Basin names are globally unique. They must be between 8 and 48 characters long and comprise lowercase letters, numbers and hyphens. They cannot begin or end with a hyphen.
Create source streams
Create source streams with the prefix pup/
and append some “woofs”:
We can verify that the streams have been appended with random numbers using:
The above command should output a list of 10 random numbers.
Create a new stream called woofs
to store the processed records:
The Pipeline
Configuration
Create a file called woof-pipeline.yml
:
Running the pipeline
Start the pipeline using:
Open up another terminal and see the records being appended to the woofs
stream: