How omarjebbari/crypto-bigdata-project works
This is a Lambda-style cryptocurrency analytics platform. Binance ticker events flow through Kafka and Spark Streaming into HBase, which serves the Flask live dashboard, predictions, and news-aware chatbot. A separate Airflow-orchestrated batch path collects Yahoo Finance data, trains hourly and daily XGBoost models, and stores results for the Streamlit analytics dashboard. The README also describes HDFS historical storage and MongoDB batch aggregation; those links are shown at subsystem level where source excerpts do not expose every transfer.
Main entry points: batch_pipeline_dag.py Batch scheduler · app.py News-aware assistant · data_pipeline_1d.py Daily model pipeline · data_pipeline_1h.py Hourly model pipeline
Components 20
Real-time analytics
- Ticker producer
docker/crypto-producer/producer.py - Kafka topics
- Stream processor
streaming/spark_streaming.py - HBase writer
streaming/utils/hbase_writer.py - Live market store
Batch analytics
- Batch scheduler
airflow/dags/batch_pipeline_dag.py - Yahoo collector
airflow/scripts/yahoo_producer.py - Daily model pipeline
batch/data_pipeline_1d.py - Hourly model pipeline
batch/data_pipeline_1h.py - Historical/model store
- Batch result writer
batch/write_to_mongo.py - Batch results
User interfaces
- Live dashboard API
dashboard/app.py - Live dashboard client
dashboard/static/script.js - Batch dashboard
batch/streamlit_batch_dashboard.py
Market assistant
- News-aware assistant
dashboard/app.py
Other components
- Dashboard user
- Binance feed
- NewsAPI
- Gemini LLM
Connections 25
- Binance feed → Ticker producer: streams tickers
README.md - Ticker producer → Kafka topics: publishes ticks
docker/crypto-producer/producer.py - Kafka topics → Stream processor: streams records
streaming/spark_streaming.py - Stream processor → HBase writer: writes batches
streaming/spark_streaming.py - HBase writer → Live market store: stores live data
streaming/utils/hbase_writer.py - Batch scheduler → Yahoo collector: runs collector
airflow/dags/batch_pipeline_dag.py - Batch scheduler → Hourly model pipeline: runs hourly job
airflow/dags/batch_pipeline_dag.py - Batch scheduler → Daily model pipeline: runs daily job
airflow/dags/batch_pipeline_dag.py - Batch scheduler → Batch result writer: runs result writer
airflow/dags/batch_pipeline_dag.py - Yahoo collector → Kafka topics: publishes history
- Daily model pipeline → Historical/model store: writes parquet/models
batch/data_pipeline_1d.py - Daily model pipeline → Kafka topics: reads history
batch/data_pipeline_1d.py - Hourly model pipeline → Kafka topics: reads history
batch/data_pipeline_1h.py - Hourly model pipeline → Historical/model store: stores models
batch/data_pipeline_1h.py - Batch result writer → Batch results: stores predictions
README.md - Live market store → Live dashboard API: serves market data
dashboard/app.py - Live dashboard API → Live dashboard client: serves dashboard API
- Live dashboard client → Live dashboard API: requests live data
dashboard/static/script.js - Dashboard user → Live dashboard client: views analytics
- Batch results → Batch dashboard: supplies batch results
batch/streamlit_batch_dashboard.py - Dashboard user → Batch dashboard: explores history
README.md - Live dashboard API → News-aware assistant: routes questions
dashboard/app.py - News-aware assistant → NewsAPI: fetches articles
dashboard/app.py - News-aware assistant → Gemini LLM: requests analysis
README.md - News-aware assistant → Live market store: reads market context
dashboard/app.py