Git Product home page Git Product logo

lh_ed_vanessa_ruiz's Introduction

docker pull shieldsio/shields

Indicium Tech Code Challenge

Data Pipeline

Context

This is a data pipeline project built with Apache Airflow to process input data and generate useful insights. The pipeline was developed to run in a Python 3.x environment.

Prerequisites

Make sure you have Python 3.x installed on your system. You can download and install Python from the official Python website.

Technologies Used

  • Python (Version: 3.9.9)
  • Apache Airflow (Version: 2.7.2)
  • Embulk (Version: 0.10.27)
  • Docker (Version: 20.10.11)
  • Docker Compose (Version: 1.29.2)

⚙️ Running the Pipeline Locally

To run the data pipeline locally using Docker and Apache Airflow, follow these steps:

  1. Clone the repository:

    git clone https://github.com/vlruiz108/LH_ED_VANESSA_RUIZ
    
  2. Navigate to the project directory:

    cd data-pipeline
    
    python data_pipeline.py
  3. Create and activate a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # on Windows use venv\Scripts\activate.bat
    
  4. Install project dependencies:

    pip install -r requirements.txt
    
  5. Configure the necessary credentials and parameters in the config.py file. You can create a copy of the example file config_example.py and rename it to config.py.

  6. Ensure that Apache Airflow is configured correctly. You can refer to the official Apache Airflow documentation for detailed instructions on configuration.

  7. Build and start the Docker containers:

    docker-compose up --build
  1. To lift the containers:
     docker-compose up -d
  1. Consult the container

    docker-compose ps
    
  2. Start Apache Airflow:

    airflow webserver --port 8080
    

    and in another terminal:

    airflow scheduler
    
  3. Access the Airflow dashboard at http://localhost:8080 in your web browser.

  4. Activate the DAG (Directed Acyclic Graph) data_pipeline in the Airflow dashboard.

  5. The pipeline is now configured to run according to the schedule defined in the DAG.

lh_ed_vanessa_ruiz's People

Contributors

vlruiz108 avatar thelekerman avatar vitoravancini avatar dpavancini avatar

Stargazers

Denise Rosa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.