-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
43 lines (22 loc) · 1.53 KB
/
README.txt
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
43
# I. Installing packages before building
mvn install:install-file -DgroupId=org.apache.hadoop -DartifactId=zookeeper -Dversion=3.1.1 -Dpackaging=jar -Dfile=$PATH_TO_ZOOKEEPER_JAR
# II. Build
mvn clean package assembly:assembly
# III. Set up directories in zookeeper.
# 1. Start a ZooKeeper server
# 2. Use the zkCli.sh script provided with Zookeeper
zkCli.sh < /src/main/resources/s4-cluster.cmds
# IV. Start a Zeno Console
# In a separate window (you may omit rlwrap, if it is not installed on the system):
rlwrap java -cp target/zeno-0.1.0.0-jar-with-dependencies.jar:target/zeno-0.1.0.0.jar io.s4.zeno.console.Main localhost /s4cluster
# V. Start some Sites
# In separate windows:
SITE1: java -cp target/zeno-0.1.0.0-jar-with-dependencies.jar:target/zeno-0.1.0.0.jar io.s4.zeno.SiteTest SITE1 localhost /s4cluster "{port.event:12344,port.receive.protocol:21344,port.receive.data:13244}"
SITE2: java -cp target/zeno-0.1.0.0-jar-with-dependencies.jar:target/zeno-0.1.0.0.jar io.s4.zeno.SiteTest SITE2 localhost /s4cluster "{port.event:12345,port.receive.protocol:21345,port.receive.data:13245}"
# VI. Generate Load
# In the console window (IV)
loadgen src/main/resources/high-100.txt
# VII. Notice that the 2 sites are now overloaded and try to shed load.
# Start a third site to take over the load.
SITE3: java -cp target/zeno-0.1.0.0-jar-with-dependencies.jar:target/zeno-0.1.0.0.jar io.s4.zeno.SiteTest SITE3 localhost /s4cluster "{port.event:12346,port.receive.protocol:21346,port.receive.data:13246}"
# Now observe as parts are transferred.