-
Notifications
You must be signed in to change notification settings - Fork 2
/
daq-cluster.sh
54 lines (37 loc) · 974 Bytes
/
daq-cluster.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
case $1 in
"start"){
echo ================== 启动 集群 ==================
#启动 Zookeeper集群
zk-cluster.sh start
#启动 Hadoop集群
hadoop-cluster.sh start
#启动 Kafka采集集群
kafka.sh start
#启动采集 Flume
f1.sh start
#启动日志消费 Flume
f2.sh start
#启动业务消费 Flume
f3.sh start
#启动 maxwell
maxwell.sh start
};;
"stop"){
echo ================== 停止 集群 ==================
#停止 Maxwell
maxwell.sh stop
#停止 业务消费Flume
f3.sh stop
#停止 日志消费Flume
f2.sh stop
#停止 日志采集Flume
f1.sh stop
#停止 Kafka采集集群
kafka.sh stop
#停止 Hadoop集群
hadoop-cluster.sh stop
#停止 Zookeeper集群
zk-cluster.sh stop
};;
esac