GithubHelp home page GithubHelp logo

king-ak / spotify-charts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.72 MB

Example data product based around Spotify Chart data which leverages a medallion architecture

Scala 78.76% HCL 15.81% Shell 5.43%

spotify-charts's Introduction

spotify-charts

Overview

This project is an example of a data product leveraging a medallion lakehouse architecture with Spark Streaming.

Dataset: Spotify Charts Dataset descripition from Kaggle:

This is a complete dataset of all the "Top 200" and "Viral 50" charts published globally by Spotify. Spotify publishes a new chart every 2-3 days. This is its entire collection since January 1, 2019. This dataset is a continuation of the Kaggle Dataset: Spotify Charts but contains 29 rows for each row that was populated using the Spotify API.

Gradle

Run tests with the following command:

gradle test

Build the project with the following command:

gradle build

Terraform Deploy

The pipeline can be deployed to Azure using Terraform with the following commands after the project has been set up with the databricks_poc repo

cd terraform
terraform init
terraform apply -auto-approve -var-file=environment/poc.tfvars \
  -var='databricks_workspace_resource_id=<DATABRICKS-WORKSPACE-RESOURCE-ID>' \
  -var='databricks_workspace_url=<DATABRICKS-WORKSPACE-URL>' \
  -var='poc_storage_account_key=<STORAGE-ACCOUNT-KEY>'

Terraform Destroy

The pipeline can be destroyed with the following command:

terraform destroy -auto-approve -var-file=environment/poc.tfvars \
  -var='databricks_workspace_resource_id=<DATABRICKS-WORKSPACE-RESOURCE-ID>' \
  -var='databricks_workspace_url=<DATABRICKS-WORKSPACE-URL>' \
  -var='poc_storage_account_key=<STORAGE-ACCOUNT-KEY>'

Local Run

The pipeline can be run locally with spark-submit (spark version >=3.5) using the following command:

bash utils/local-run.sh

spotify-charts's People

Contributors

king-ak avatar

Watchers

 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.