-
Create a new gcp account and activate 90 days trial
[email protected] boxwood-academy-373200
-
Switch default project to the newly created one
gcloud auth login gcloud config configurations list gcloud config set project boxwood-academy-373200
-
Create 2 buckets
# boxwood-academy-inbound # boxwood-academy-archive # boxwood-academy-source gsutil mb gs://boxwood-academy-inbound gsutil mb gs://boxwood-academy-archive gsutil mb gs://boxwood-academy-source
-
Create BQ dataset for raw data
bq mk raw
-
Create new dbt profile Add new profile (create new)
vi ~/.dbt/profiles.yml
paradime: outputs: dev: dataset: dev fixed_retries: 1 location: US method: service-account keyfile: /Users/vasilii.surov/vscode/paradime-dbt/docker/dbt-paradime.json priority: interactive project: boxwood-academy-373200 threads: 5 timeout_seconds: 300 type: bigquery prod: dataset: prod fixed_retries: 1 location: US method: service-account keyfile: /Users/vasilii.surov/vscode/paradime-dbt/docker/dbt-paradime.json priority: interactive project: boxwood-academy-373200 threads: 5 timeout_seconds: 300 type: bigquery target: dev
-
Create and authenticate new dbt project
dbt init --adapter bigquery paradime gcloud auth application-default login --scopes=https://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/drive.readonly
-
Check out dbt configuration
dbt debug
-
Initialize git
git init
-
dbt-utils package
dbt deps
-
Download all csv data locally
/home/sova/.venv/dbt/bin/python3 /home/sova/IdeaProjects/dbt/sunrun/scripts/download.py
-
Recompressing with gzip
unzip \*.zip gzip *.csv
-
Upload all files to source bucket
gsutil -m cp *.csv.gz gs://boxwood-academy-source/citibike/
-
Load test volume of data into inbound bucket
gsutil -m cp gs://boxwood-academy-source/citibike//2018*.gz gs://boxwood-academy-inbound/citibike/
-
Load files from gcs into BQ
./scripts/bq_load.sh
-
Build dbt models: chains start [end == start] [end == start] .. end
-
Composer jobs dbt_compile.py
-
Models: see dbt docs
dbt docs generate dbt docs serve
paradime-dbt's Introduction
paradime-dbt's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.