-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (21 loc) · 960 Bytes
/
Makefile
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
MODULE=WEBLOGS
package:
mvn compile package
# Rules related to logs
logs:
spark-submit --class com.weblogs.stream.Main --master local target/SparkStreaming-0.0.1-SNAPSHOT-jar-with-dependencies.jar
log-analytics:
spark-submit --class com.weblogs.stream.Analytics --master local target/SparkStreaming-0.0.1-SNAPSHOT-jar-with-dependencies.jar
send-logs:
scripts/sendlogs.sh log.txt WEBLOGS
watch-logs:
kafka-console-consumer --bootstrap-server localhost:9093 --topic WEBLOGS --from-beginning
# Rules related to events
send-events:
scripts/sendlogs.sh events.txt EVENTS
watch-events:
kafka-console-consumer --bootstrap-server localhost:9093 --topic EVENTS --from-beginning
events:
spark-submit --class com.events.stream.Main --master local target/SparkStreaming-0.0.1-SNAPSHOT-jar-with-dependencies.jar
event-analytics:
spark-submit --class com.events.stream.Analytics --master local target/SparkStreaming-0.0.1-SNAPSHOT-jar-with-dependencies.jar