Icon

Exercise 02 Production Data Pipeline with Data Validation and Logging

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

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

Step 1: Connect to Amazon S3 for Orders data

  1. Connect to Amazon S3 for Orders data (provide credentials similar to exercise 3 in session 1)

Step 3 : Connect to the KNIME Hub to execute data transformation workflow, error logging, and send email notifications

  1. Connect to KNIME Hub

    • Use Space Connector node to connect to your private space on the KNIME Business Hub*

    • Set knime-edu-hub as the Hub mountpoint, and select the space (ExerciseSpace-User##) provided by your trainer

    • Connect the Space System connection port from Space Connector node to the Call Workflow Service node

  2. Provide the path of the Data Transformation workflow from session 3 on KNIME Hub

    • In the Call Workflow Service node, provide path to the data transformation workflow that resides on CDDS Production Space

      • workflow name : 01_Data_Transformation_wf

  3. (Optional Exercise) Check inside the Logging and Send Email - Failure Components for instructions


*Make sure to login to KNIME Business Hub in advance



Step 2 : Connect to the KNIME Hub to execute data validation workflow, error logging, and send email notifications

  1. Connect to KNIME Hub

    • Use Space Connector node to connect to your private space on the KNIME Business Hub*

    • Set knime-edu-hub as the Hub mountpoint, and select the space (User##) provided by your trainer

    • Connect the Space System connection node from Space Connector node to the Call Workflow Service node

  2. Provide the path of the Data Validation workflow from the previous exercise

    • In the Call Workflow Service node, provide path to the data validation workflow uploaded to the KNIME Business Hub

      • workflow name : Exercise 01 Data Validation & Statistics Process Control

  3. (Optional Exercise) Check inside the Logging and Send Email - Failure Components for instructions


*Make sure to login to KNIME Business Hub in advance



Read Orders from Restaurants
Data Validation Checks
Perform Data Transformation
Write to Production Database

Learning objective: In this exercise you'll learn how to use workflow orchestration and building the production data pipeline that validates the incoming data and also the transformed data before it is written to the database


Workflow description: This workflow showcases the steps in creating the a production ready data pipeline that performs data validation for incoming data and also logs the status of every step . Find below the three major tasks performed in this workflow

  • Extract the data from the data sources and Validate the input data

  • If the data validation is successful, then perform the data transformation

  • If the transformed data passes all the data checks, then write it to the database


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

Session 4 - Best Practices when Productionizing Data Pipelines

Exercise 2: Production Data Pipeline with Data Validation and Logging

Production Database


Step 4 : Write the transformed data to production database

  1. Connect to PostgreSQL Production database and update table

    • Use the username, password, hostnameprovided 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

Connect to S3 Specify working directory
Amazon S3 Connector
Logging
Send Email - Failure
Top : SuccessBottom : Failure
Switch
append:orders-cleaned
DB Writer
Call Validation Workflow
Call Workflow Service
Top : Success Bottom : Failure
Switch
Adding Restuarant names
Joiner
Logging
Excel Reader
Read orders datafrom Amazon S3
CSV Reader
Call data trasformationworkflow
Call Workflow Service
Production DB
PostgreSQL Connection
Authenticate against Amazon
Amazon Authenticator
CDDS Production Space
Space Connector
Data Validation worfklow
Space Connector
Send Email - Failure

Nodes

Extensions

Links