Icon

02 Production data pipeline with data validation & logging

This workflow:
Annotations and comments
  • Part 3 - Data governance and best practices Exercise 02 Production data pipeline with data validation & logging
  • Learning objective: Learn how to use workflow orchestration in a production data pipeline that extracts, validates, transforms, and loads data Workflow description: This workflow: Reads and validates the data from real data sources, Calls the developed and tested Data Transformation workflow to transform the raw orders data, Loads the transformed data to the production database, Besides, it logs the validation and transformation steps to a log file and sends an email in case of failures. The workflow then can be deployed as a schedule to run regularly and update the database table. You'll find the instructions to the exercises in the yellow annotations.
  • Step 2. Call the data validation workflow and enable logging and email alert for failures Connect to your user space on KNIME Hub with the Space Connector Call the data validation workflow uploaded to KNIME Hub in the previous exercise with the Call Workflow Service node Select the latest version and the valid execution context Open the Logging and Send Email - Failure components for further instructions
  • Step 3. Call the data transformation workflow on KNIME Hub Connect to KNIME Hub space with the Space Connector node Call the Data_Transformation workflow saved to KNIME Hub with the Call Workflow Service node Select the latest version and the valid execution context
  • Alternative: Read raw data from file If you don't have access to the S3 bucket, use the raw data from the CSV Reader below instead.
  • Step 1. Connect to the S3 bucket Connect to the S3 bucket similar to the exercises in Part 2
  • Load (production DB)
  • Extract raw data
  • Authenticate against AWS
  • Connect to S3 Specify working directory
  • Read orders data from Amazon S3
  • Read orders data from file
  • Call the data validation workflow
  • Call data trasformation workflow
  • Append: orders_cleaned
  • Your user space
  • 0: Success 1: Failure
  • Status = Failure: 1 else: 0

Nodes

Extensions

Links