-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash.sh
More file actions
42 lines (33 loc) · 1.14 KB
/
bash.sh
File metadata and controls
42 lines (33 loc) · 1.14 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
# Define the path to your installations
ZOOKEEPER_HOME="/BDMG/Zookeeper/apache-zookeeper-3.7.1-bin"
KAFKA_ZOOKEEPER="/BDMG/Kafka/kafka-3.5.1-src"
KAFKA_HOME="/BDMG/Kafka/kafka-3.5.1-src"
STORM_NIMBUS="/BDMG/Storm/Nimbus/apache-storm-2.5.0"
STORM_SUPERVISOR="/BDMG/Storm/Supervisor/apache-storm-2.5.0"
STORM_UI="/BDMG/Storm/Nimbus/apache-storm-2.5.0"
# Start ZooKeeper
echo "Starting ZooKeeper..."
${ZOOKEEPER_HOME}/bin/zkServer.sh start &
sleep 5
echo "Starting Zookeeper storm..."
${KAFKA_ZOOKEEPER}/bin/zookeeper-server-start.sh ${KAFKA_ZOOKEEPER}/config/zookeeper.properties &
sleep 5
# Start Kafka
echo "Starting Kafka..."
${KAFKA_HOME}/bin/kafka-server-start.sh ${KAFKA_HOME}/config/server.properties &
sleep 5
# Start Storm Nimbus
echo "Starting Storm Nimbus..."
${STORM_NIMBUS}/bin/storm nimbus &
sleep 5
# Start Storm Supervisor
echo "Starting Storm Supervisor..."
${STORM_SUPERVISOR}/bin/storm supervisor &
sleep 5
echo "starting ui"
${STORM_UI}/bin/storm ui &
sleep 5
# Start the UIs (if available)
# Replace 'ui-command' with the actual command to start the UIs
# Sleep to keep the script running
echo "Services started. Press Ctrl+C to stop"