Sitemap
Geek Culture

A new tech publication by Start it up (http://jeetwincasinos.com/swlh).

The Fastest Way to Build Data Pipelines?

8 min readAug 30, 2023

--

Photo by on

What are Kestra Blueprints and Why Should You Care?

Image 1 — Kestra blueprints page (image by author)

Blueprint Example 1: How to Install Python Packages Before Running a Python Script

Image 2 — Example blueprint contents (image by author)
Image 3 — Blueprint description (image by author)
Image 4 — Using the blueprint (image by author)
Image 5 — Running the blueprint and examining task flow run (image by author)
Image 6 — Blueprint output logs (image by author)

Blueprint Example 2: Run R Script in a Docker Container and Generate Downloadable Files

Image 7 — Available R blueprints (image by author)
Image 8 — Flow of the R Docker blueprint (image by author)
Image 9 — R blueprint description (image by author)
Image 10 — R blueprint code (image by author)
Image 11 — R blueprint execution flow (image by author)
Image 12 — Resulting downloadable files (image by author)
Image 13 — Contents of the downloaded file (image by author)

Blueprint Example 3: Load a CSV File into a Postgres Table

Image 14 — Execution flow of the Postgres blueprint (image by author)
Image 15 — Flow code for the Postgres blueprint (image by author)
Image 16 — Postgres error (image by author)

Blueprints are Just That — Blueprints

Image 17 — Postgres configuration changes (image by author)
Image 18 — Running the flow again (image by author)

How to Test If Data was Saved to Postgres

docker exec -it <container-name> bash
Image 19 — Bash connection to a Docker container (image by author)
psql -h localhost -U kestra -d kestra -p 5432
Image 20 — Logging into the Postgres database (image by author)
SELECT * FROM country_referential;
Image 21 — Querying the Postgres database (image by author)

Kestra Blueprints — Final Words

Dario Radečić
Dario Radečić

Written by Dario Radečić

Senior Data Scientist & Tech Writer |

No responses yet