-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.sh
executable file
·34 lines (24 loc) · 973 Bytes
/
run.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
#!/bin/bash
echo "Checking casssandra nodes status..."
nodetool status
sleep 7
echo "Starting Processor..."
gnome-terminal -- java -jar ./spark-processor/target/spark-processor-0.0.1-SNAPSHOT.jar & echo spark-processor:running
sleep 10
echo "Starting Producer"
gnome-terminal -- java -jar ./kafka-producer/target/kafka-producer-0.0.1-SNAPSHOT.jar & echo kafka-producer:running
echo "Press enter to open an extra Kafka-console-consumer to see message events flow"
read continue
gnome-terminal -- sh ./kafka_2.13-3.0.0/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic temperature & echo Kafka-Console-Consumer:opened
sleep 10
echo "Ready to enter query using cqlsh..."
read continue
cqlsh mattia
sleep 5
echo "Press enter to start new realtime Spark jobs"
read continue
gnome-terminal -- java -jar ./spark-mapreduce/target/spark-mapreduce-0.0.1-SNAPSHOT.jar
sleep 10
echo "Ready to enter new query using cqlsh..."
read continue
cqlsh mattia