-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
66 lines (47 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: airflow spark hive scale-spark minio superset down
pull:
docker-compose pull
up:
docker-compose up -d
logs:
docker-compose logs -f
ps:
docker-compose ps
down:
docker-compose down -v
jars_dl:
sh jarfile_download.sh
clear-images:
docker image prune --filter="dangling=true"
minio:
docker-compose up -d minio
airflow:
docker-compose up -d airflow
spark:
docker-compose up -d spark-master
sleep 2
docker-compose up -d spark-worker
scale-spark:
docker-compose scale spark-worker=3
hive:
docker-compose up -d mariadb
sleep 2
docker-compose up -d hive
presto-cluster:
docker-compose up -d presto presto-worker
superset:
docker-compose up -d superset
presto-cli:
docker-compose exec presto \
presto --server localhost:8888 --catalog hive --schema default
to-minio:
sudo cp -r .storage/data/* .storage/minio/datalake/
exec-mariadb:
docker-compose exec mariadb mysql -u root -p -h localhost
run-spark:
docker-compose exec airflow \
spark-submit --master spark://spark-master:7077 \
--deploy-mode client --driver-memory 2g --num-executors 2 \
--packages io.delta:delta-core_2.12:1.0.0 --py-files dags/utils/common.py \
--jars dags/jars/aws-java-sdk-1.11.534.jar,dags/jars/aws-java-sdk-bundle-1.11.874.jar,dags/jars/delta-core_2.12-1.0.0.jar,dags/jars/hadoop-aws-3.2.0.jar,dags/jars/mariadb-java-client-2.7.4.jar \
dags/etl/spark_initial.py