Skip to content

Latest commit

 

History

History
50 lines (44 loc) · 1.25 KB

README.md

File metadata and controls

50 lines (44 loc) · 1.25 KB

Sample

This sample is for experimenting with the Airbyte Module (ABM) locally, without Kubernetes.

The server is configured to obtain a Parquet file from https://github.com/Teradata/kylo/blob/master/samples/sample-data/parquet/userdata2.parquet

The Airbyte server is both an HTTP server (on port 8080) and an Arrow Flight server (on port 8081)

Steps

Read example

  1. Install python dependencies
    pipenv install
  2. Run the server with
    pipenv run server --config sample/sample.yaml  --workdir /tmp
  3. Read the userdata dataset from HTTP server:
    curl localhost:8080/userdata
  4. Read the userdata dataset from the arrow-flight server:
    pipenv run python sample/sample.py

Write example

  1. Install python dependencies
    pipenv install
  2. Run the server with
    pipenv run server --config sample/write_config.yaml  --workdir /tmp
  3. Send the information to be written to the server:
    sample/post.sh
  4. Check the output in /tmp/airbyte_out
  5. Send the information to be written to the server using arrow-flight:
    pipenv run python sample/sample_put.py
  6. Check the output in /tmp/airbyte_out