Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pranab Ghosh
committed
Sep 29, 2014
1 parent
21219d0
commit 670133e
Showing
8 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
debug.on=true | ||
|
||
#VisitTopology | ||
spout.threads=1 | ||
visit.session.bolt.threads=2 | ||
visit.depth.bolt.threads=1 | ||
num.workers=1 | ||
visit.session.tick.freq.sec=5 | ||
visit.depth.tick.freq.sec=10 | ||
max.spout.pending=1000 | ||
max.task.parallelism=100 | ||
|
||
#VisitSpout | ||
redis.server.host=localhost | ||
redis.server.port=6379 | ||
redis.log.queue=logQueue | ||
date.ordinal=0 | ||
time.ordinal=1 | ||
url.ordinal=4 | ||
session.regex=.*?sessionid=(\\S{36}).* | ||
|
||
#VisitSessionBolt | ||
page.id.pattern=/(home\\S).* | ||
logOut.pattern=logout | ||
session.timeOut=30 | ||
|
||
#VisitDepthBolt | ||
window.size=20 | ||
result.type=bounceRate | ||
visit.depth.stat.queue=visitStatQueue | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<project name="visitante_for_storm" default="uber-jar" basedir="."> | ||
<target name="uber-jar"> | ||
<echo>Packaging visitante into a single uber JAR</echo> | ||
<jar destfile="uber-visitante-1.0.jar"> | ||
<zipgroupfileset dir="/Users/pranab/Projects/lib" | ||
includes="jedis-2.2.1.jar,commons-pool-1.5.5.jar,guava-14.0.1.jar,jackson-core-asl-1.9.13.jar,jackson-mapper-asl-1.9.13.jar" /> | ||
<zipgroupfileset dir="/Users/pranab/Projects/visitante/target" | ||
includes="visitante-1.0.jar, " /> | ||
<zipgroupfileset dir="/Users/pranab/Projects/chombo/target" | ||
includes="chombo-1.0.jar, " /> | ||
<zipgroupfileset dir="/Users/pranab/Projects/hoidla/target" | ||
includes="hoidla-1.0.jar, " /> | ||
</jar> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
echo "Usage : $0 operation" | ||
exit | ||
fi | ||
|
||
case "$1" in | ||
"genLogs") | ||
# ./bounce.py <num_items> <num_sessions> | ||
echo "generating events and pushing to redis queue" | ||
./bounce.py genLogs $2 $3 | ||
;; | ||
|
||
"buildJar") | ||
echo "building uber jar" | ||
ant -f build_storm.xml | ||
;; | ||
|
||
"startStorm") | ||
echo "starting storm" | ||
storm nimbus & | ||
sleep 5 | ||
storm supervisor & | ||
sleep 5 | ||
storm ui & | ||
;; | ||
|
||
"deployTopology") | ||
echo "deploying visitante storm topology" | ||
storm jar uber-visitante-1.0.jar org.visitante.realtime.VisitTopology bounce bounce.properties | ||
;; | ||
|
||
"killTopology") | ||
echo "killing visitante storm topology" | ||
storm kill bounce | ||
;; | ||
|
||
*) | ||
echo "unknown operation $1" | ||
;; | ||
|
||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters