Icon

Exercise 03 Production Data Pipeline

There has been no title set for this workflow's metadata.

Learning objective: In this exercise you will learn building the data pipeline for production and usage of Call Workflow services

Workflow description: This workflow showcases the important aspects of building the data pipeline for production. Find below the three major tasks performed in this workflow

The data is read from the real data sources, eg, weekly data is updated in Google sheets, we read it using the Google Sheet reader node

Further the data transformation workflow (created in exercise 1a) is called using the Call Workflow service node and it transforms the data

At last, the transformed data is written to production database to allow us to check the consistency of the processed data

Step 3 : Write the transformed data to production database

  1. Connect to PostgreSQL Production database and update table

    • Use the username, password, hostname (provided by the course instructors) and database name as "l3deprod" in the PostgreSQL Connection component to connect to database

    • Provide the Schema name as userXX(eg: user01) and table name as 'orders-cleaned' in the component

Step 2 : Call the workflow saved in Exercise 1

  1. Calling workflow with Call Workflow Service node

    • Drag Call Workflow Service node

    • Click the Configure button of the node on left top

    • In Execution Target set the Workflow location as relative to current workflow

    • Click the Browse button and select the workflow saved in Exercise 1*

    • Click the Adjust node ports option at the bottom right

    • Connect the output of Google Sheets Reader node to Call Workflow Service node


../../Deployment_Workflows/01_Data_Transformation_wf



Step 1 : Connect to Amazon S3 for Orders data

  1. Provide Access Key ID and Secret Key provided by the trainers to the Amazon Authentication node. eu-west-1 is already selected as a region.

  2. The Amazon S3 Connector and CSV Reader nodes are already configured to read the orders CSV file orders_oct_21-27.csv from folder l3-de in knime-education-l4-de-eu-west. Execute them.


Note: In general, you can browse though different folders on S3. In this course, provided credentials are with read-only permissions, therefore browsing is limited to the knime-education-l4-de-eu-west bucket.




Call Deployment Workflow
Recent Week data

Session 1 - Preparing a Data Pipeline for Deployment

Exercise 1b: Build production data pipeline

Learning objective: In this exercise you will learn building the data pipeline for production and usage of Call Workflow services


Workflow description: This workflow showcases the important aspects of building the data pipeline for production. Find below the three major tasks performed in this workflow

  • The data is read from the real data sources, eg, weekly data is updated in S3, we read it using the Amazon Authenticator, Amazon S3 Connector, and CSV Reader nodes

  • Further the data transformation workflow (created in exercise 1a) is called using the Call Workflow service node and it transforms the data

  • At last, the transformed data is written to production database to allow us to check the consistency of the processed data


You'll find the instructions to the exercises in the yellow annotations.

Production Database


Connect to S3 Specify working directory
Amazon S3 Connector
append:orders-cleaned
DB Writer
Call Workflow Service
Production DB
PostgreSQL Connection
Read orders datafrom Amazon S3
CSV Reader
Authenticate against Amazon
Amazon Authenticator

Nodes

Extensions

Links