This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install dbt: https://docs.getdbt.com/dbt-cli/installation | |
pip install dbt==0.19.0 | |
# clone repo | |
git clone https://github.com/dbt-labs/jaffle_shop | |
# create ~/.dbt/profiles.yml | |
# ensure profile setup | |
dbt debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Инициализация | |
# устанавливаем проект | |
gcloud projects list | |
gcloud config set project <my-project> | |
# выбираем зону для кластера, например, europe-west3-a | |
gcloud compute regions list | |
gcloud compute zones list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Инициализация | |
# устанавливаем проект | |
gcloud projects list | |
gcloud config set project my-project | |
# выбираем зону для кластера, например, europe-west3-a | |
gcloud compute regions list | |
gcloud compute zones list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop table kiva_loans ; | |
create external table kiva_loans | |
( | |
id INT | |
, funded_amount FLOAT | |
, loan_amount FLOAT | |
, activity STRING | |
, sector STRING | |
, use STRING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editable install with no version control (apache-airflow==1.10.11) | |
Babel==2.8.0 | |
Flask-Admin==1.5.4 | |
Flask-AppBuilder==2.3.4 | |
Flask-Babel==1.0.0 | |
Flask-Bcrypt==0.7.1 | |
Flask-Caching==1.3.3 | |
Flask-JWT-Extended==3.24.1 | |
Flask-Login==0.4.1 | |
Flask-OpenID==1.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.rootLogger=ERROR, console | |
# set the log level for these components | |
log4j.logger.com.test=DEBUG | |
log4j.logger.org=ERROR | |
log4j.logger.org.apache.spark=ERROR | |
log4j.logger.org.spark-project=ERROR | |
log4j.logger.org.apache.hadoop=ERROR | |
log4j.logger.io.netty=ERROR | |
log4j.logger.org.apache.zookeeper=ERROR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Домашнее задание: поднять Airflow в Docker, протестировать и запустить DAG tutorial.py | |
# link to docker-airflow repository | |
https://github.com/puckel/docker-airflow | |
# build docker image | |
docker build -t learn/docker . | |
## local execution | |
docker run -d \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define your connection string (URI) with env variable | |
# export MONGODB_ATLAS_URI=<your_uri> | |
mongo $MONGODB_ATLAS_URI | |
# replica set | |
rs.status() | |
db.isMaster() | |
# Mongo Shell Basics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editable install with no version control (apache-airflow==1.10.15) | |
Babel==2.9.0 | |
Flask-Admin==1.5.4 | |
Flask-AppBuilder==2.3.4 | |
Flask-Babel==1.0.0 | |
Flask-Bcrypt==0.7.1 | |
Flask-Caching==1.3.3 | |
Flask-JWT-Extended==3.25.0 | |
Flask-Login==0.4.1 | |
Flask-OpenID==1.2.5 |
OlderNewer