# omaryasser3060/olist-end-to-end-big-data-pipeline architecture

> Architecture diagram of the GitHub repository omaryasser3060/olist-end-to-end-big-data-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/omaryasser3060/olist-end-to-end-big-data-pipeline
- Repository: https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline

## Overview

This repository documents an Olist e-commerce analytics pipeline, from raw CSV ingestion through Medallion-layer processing and SQL analytics to a Power BI dashboard. The README supports the principal stage relationships; the sampled Python script confirms that CSV export reads Gold Parquet tables and writes CSV files. PySpark, Hive, and dashboard internals are not sampled, so their components are represented at the available directory level.

Main entry points: [`pyspark_etl`](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/pyspark_etl) (Gold Tables), [`hive/create_gold_tables.hql`](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_gold_tables.hql) (Hive Gold Tables), [`hive/create_silver_tables.hql`](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_silver_tables.hql) (Hive Silver Tables), [`hive/create_database.hql`](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_database.hql) (Hive Database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_processing["Data Processing"]
  node_hdfs[("HDFS Bronze")]
  node_silver[("Silver Parquet")]
  node_gold[("Gold Tables")]
  node_pyspark["PySpark ETL"]
end

subgraph group_warehouse["Warehouse Analytics"]
  node_hive_db["Hive Database"]
  node_hive_silver["Hive Silver Tables"]
  node_hive_gold["Hive Gold Tables"]
  node_analytics["SQL Analytics"]
end

subgraph group_delivery["Export and BI"]
  node_export["Parquet CSV Export"]
  node_csv[("Gold CSV Files")]
  node_powerbi["Power BI Dashboard"]
end

node_source[("Olist CSV Data")]
node_analyst(("Business User"))

node_source -->|"uploads raw data"| node_hdfs
node_hdfs -->|"cleans to Parquet"| node_silver
node_silver -->|"builds aggregates"| node_gold
node_gold -.-> node_hive_silver
node_gold -->|"exposes as tables"| node_hive_gold
node_silver -->|"exposes as tables"| node_hive_silver
node_hive_db -->|"creates database"| node_hive_silver
node_hive_db -->|"creates database"| node_hive_gold
node_gold -->|"queries with Spark SQL"| node_analytics
node_hive_gold -->|"queries with Hive SQL"| node_analytics
node_gold -->|"reads Parquet tables"| node_export
node_export -->|"writes CSV files"| node_csv
node_csv -->|"imports CSV data"| node_powerbi
node_analyst -.->|"views dashboard"| node_powerbi

click node_silver "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/pyspark_etl"
click node_gold "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/pyspark_etl"
click node_pyspark "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/pyspark_etl/olist-brazilian-e-commerce-silver-layer.ipynb"
click node_hive_db "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_database.hql"
click node_hive_silver "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_silver_tables.hql"
click node_hive_gold "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_gold_tables.hql"
click node_analytics "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/docs"
click node_export "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/python/convert_parquet_to_csv.py"
click node_powerbi "https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/Dashboard"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_hdfs,node_silver,node_gold,node_pyspark,node_analyst toneBlue
class node_hive_db,node_hive_silver,node_hive_gold,node_analytics,node_source toneAmber
class node_export,node_csv,node_powerbi toneMint
```

## Components

### Data Processing

- **HDFS Bronze**
- [Silver Parquet](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/pyspark_etl): `pyspark_etl`
- [Gold Tables](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/pyspark_etl): `pyspark_etl`
- [PySpark ETL](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/pyspark_etl/olist-brazilian-e-commerce-silver-layer.ipynb): `pyspark_etl/olist-brazilian-e-commerce-silver-layer.ipynb`

### Warehouse Analytics

- [Hive Database](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_database.hql): `hive/create_database.hql`
- [Hive Silver Tables](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_silver_tables.hql): `hive/create_silver_tables.hql`
- [Hive Gold Tables](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/hive/create_gold_tables.hql): `hive/create_gold_tables.hql`
- [SQL Analytics](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/docs): `docs`

### Export and BI

- [Parquet CSV Export](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/blob/main/python/convert_parquet_to_csv.py): `python/convert_parquet_to_csv.py`
- **Gold CSV Files**
- [Power BI Dashboard](https://github.com/omaryasser3060/olist-end-to-end-big-data-pipeline/tree/main/Dashboard): `Dashboard`

### Other components

- **Olist CSV Data**
- **Business User**

## Connections

- Olist CSV Data → HDFS Bronze: uploads raw data (evidence: `README.md`)
- HDFS Bronze → Silver Parquet: cleans to Parquet (evidence: `README.md`)
- Silver Parquet → Gold Tables: builds aggregates (evidence: `README.md`)
- Gold Tables → Hive Silver Tables
- Gold Tables → Hive Gold Tables: exposes as tables (evidence: `README.md`)
- Silver Parquet → Hive Silver Tables: exposes as tables (evidence: `README.md`)
- Hive Database → Hive Silver Tables: creates database (evidence: `README.md`)
- Hive Database → Hive Gold Tables: creates database (evidence: `README.md`)
- Gold Tables → SQL Analytics: queries with Spark SQL (evidence: `README.md`)
- Hive Gold Tables → SQL Analytics: queries with Hive SQL (evidence: `README.md`)
- Gold Tables → Parquet CSV Export: reads Parquet tables (evidence: `python/convert_parquet_to_csv.py`)
- Parquet CSV Export → Gold CSV Files: writes CSV files (evidence: `python/convert_parquet_to_csv.py`)
- Gold CSV Files → Power BI Dashboard: imports CSV data (evidence: `README.md`)
- Business User → Power BI Dashboard: views dashboard
