-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
executable file
·38 lines (24 loc) · 1.11 KB
/
start.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
#!/bin/bash
echo "Welcome to IoT Temperature Project"
echo "Created by Mattia Rengo, Ciro Rapone, Alessandro Cinti"
echo "Press Enter to continue..."
read continue
echo "Starting Hadoop cluster"
gnome-terminal -- sh $HADOOP_DIR/start-hadoop.sh & echo HadoopCluster:Starting
sleep 12
echo "Starting zookeper"
gnome-terminal -- sh kafka_2.13-3.0.0/bin/zookeeper-server-start.sh kafka_2.13-3.0.0/config/zookeeper.properties & echo zookeper-server:Starting
sleep 12
echo "Starting Kafka"
gnome-terminal -- sh kafka_2.13-3.0.0/bin/kafka-server-start.sh kafka_2.13-3.0.0/config/server.properties & echo kafka-server:Starting
sleep 12
echo "Setting-up Kafka topic"
gnome-terminal -- sh kafka_2.13-3.0.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --topic temperature --create --partitions 1 --replication-factor 1 & echo Done
sleep 5
echo "Starting Cassandra..."
gnome-terminal -- service cassandra start & echo Cassandra:Starting
sleep 10
echo "Setting-up Cassandra keyspace and tables..."
gnome-terminal -- cqlsh mattia -f ./cassandra-db/dbscript.cql & echo working...
sleep 12
echo "Project starting sequence complete"