forked from mrn-aglic/pyspark-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (38 loc) · 1.29 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
build:
docker-compose build
build-yarn:
docker-compose -f docker-compose.yarn.yml build
build-yarn-nc:
docker-compose -f docker-compose.yarn.yml build --no-cache
build-nc:
docker-compose build --no-cache
build-progress:
docker-compose build --no-cache --progress=plain
down:
docker-compose down --volumes --remove-orphans
down-yarn:
docker-compose -f docker-compose.yarn.yml down --volumes --remove-orphans
run:
make down && docker-compose up
run-scaled:
make down && docker-compose up --scale spark-worker=3
run-d:
make down && docker-compose up -d
run-yarn:
make down-yarn && docker-compose -f docker-compose.yarn.yml up
run-yarn-scaled:
make down-yarn && docker-compose -f docker-compose.yarn.yml up --scale spark-yarn-worker=3
stop:
docker-compose stop
stop-yarn:
docker-compose -f docker-compose.yarn.yml stop
submit:
docker exec da-spark-master spark-submit --master spark://spark-master:7077 --deploy-mode client ./apps/$(app)
submit-da-book:
make submit app=data_analysis_book/$(app)
submit-yarn-test:
docker exec da-spark-yarn-master spark-submit --master yarn --deploy-mode cluster ./examples/src/main/python/pi.py
submit-yarn-cluster:
docker exec da-spark-yarn-master spark-submit --master yarn --deploy-mode cluster ./apps/$(app)
rm-results:
rm -r book_data/results/*