-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstop_start_services.sh
More file actions
76 lines (60 loc) · 2.08 KB
/
stop_start_services.sh
File metadata and controls
76 lines (60 loc) · 2.08 KB
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
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
##########################################################################################
# Stop of Spark items
##########################################################################################
echo "stopping spark worker..."
/opt/spark/sbin/stop-worker.sh spark://$(hostname -f):7077
echo
sleep 5
echo "stopping spark master..."
/opt/spark/sbin/stop-master.sh
echo
sleep 5
##########################################################################################
# Stop of panda items
##########################################################################################
echo "stopping redpanda..."
sudo systemctl stop redpanda
echo
sleep 5
echo "stopping redpanda console..."
sudo systemctl stop redpanda-console
echo
sleep 5
##########################################################################################
# stop of minio
##########################################################################################
echo "stopping minio.service..."
sudo systemctl stop minio.service
echo
sleep 5
##########################################################################################
# Start of Spark items
##########################################################################################
echo "starting spark master..."
/opt/spark/sbin/start-master.sh
echo
sleep 5
echo "starting spark worker..."
/opt/spark/sbin/start-worker.sh spark://$(hostname -f):7077
echo
sleep 5
##########################################################################################
# Start of panda items
##########################################################################################
echo "starting redpanda..."
sudo systemctl start redpanda
echo
sleep 5
echo "starting redpanda console..."
sudo systemctl start redpanda-console
echo
sleep 5
##########################################################################################
# start of minio
##########################################################################################
echo "starting minio.service..."
sudo systemctl start minio.service
echo
sleep 5
echo "services have been restarted..."