docker run --rm -e POSTGRES_USER="root" -e POSTGRES_PASSWORD="root" -e POSTGRES_DB="ny_taxi" -v /home/cristiandugacicu/projects/personal/de-zoomcamp/course1b/postgres_data:/var/lib/postgresql/data -p 5432:5432 postgres:13
cp secrets/razor-project-339321-3a382dd6a910.json ~/.google/credentials/google_credentials.json
chown -R cristiandugacicu:cristiandugacicu dags
airflow dags backfill -s 2019-1-1 -e 2019-1-31 data_ingestion_gcs_dag3
BigQuery Machine Learning
SQL for ML in BigQuery
Important links
BigQuery Machine Learning Deployment
Steps to extract and deploy model with docker
dbt run --profiles-dir .
dbt run -m model_name
or
dbt build --select model_name
dbt build --select +model_name
-- dbt build --m <model.sql> --var 'is_test_run: false'
{% if var('is_test_run', default=true) %}
dbt seed --full-refresh
cd spark
export SPARK_HOME=`pwd`
export PYTHONPATH=$(ZIPS=("$SPARK_HOME"/python/lib/*.zip); IFS=:; echo "${ZIPS[*]}"):$PYTHONPATH