-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbda.sh
30 lines (26 loc) · 791 Bytes
/
bda.sh
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
#!/bin/bash
function start(){
docker-compose up
}
function restart(){
docker-compose stop
docker-compose start
}
function restart_hard(){
docker-compose stop
docker container rm bigdataarchitecture_cassandra_1
docker container rm bigdataarchitecture_falcon_1
docker container rm bigdataarchitecture_spark_1
docker container rm bigdataarchitecture_kafka_1
docker container rm bigdataarchitecture_zookeeper_1
docker-compose up
}
function remove(){
docker-compose stop
docker container rm bigdataarchitecture_cassandra_1
docker container rm bigdataarchitecture_falcon_1
docker container rm bigdataarchitecture_spark_1
docker container rm bigdataarchitecture_kafka_1
docker container rm bigdataarchitecture_zookeeper_1
}
remove