-
Notifications
You must be signed in to change notification settings - Fork 2
/
Commands.txt
50 lines (27 loc) · 2.79 KB
/
Commands.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
44
45
46
47
48
49
50
Pre-requisite:
thrift --gen java FogServices.thrift (then copy it to the correct java src folder path)
thrift --gen py FogServices.thrift
thrift --gen py EdgeServices.thrift
To start the fog
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.controlplane.FogServer 127.0.0.1 9090 1 1 0.25 0
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.controlplane.FogServer 127.0.0.1 9091 1 2 0.25 0
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.controlplane.FogServer 127.0.0.1 9092 2 3 0.25 0
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.controlplane.FogServer 127.0.0.1 9093 2 4 0.25 0
To run EdgeServer
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 1 127.0.0.1 7000 85 127.0.0.1 9090 /home/swamiji/edge_logs1/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 2 127.0.0.1 7001 85 127.0.0.1 9090 /home/swamiji/edge_logs2/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 3 127.0.0.1 7002 85 127.0.0.1 9091 /home/swamiji/edge_logs3/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 4 127.0.0.1 7003 85 127.0.0.1 9091 /home/swamiji/edge_logs4/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 5 127.0.0.1 7004 85 127.0.0.1 9092 /home/swamiji/edge_logs5/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 6 127.0.0.1 7005 85 127.0.0.1 9092 /home/swamiji/edge_logs6/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 7 127.0.0.1 7006 85 127.0.0.1 9093 /home/swamiji/edge_logs7/ /home/swamiji/base_logs/
java -cp target/edgefilesystem-0.1-jar-with-dependencies.jar com.dreamlab.edgefs.edge.server.EdgeServer 8 127.0.0.1 7007 85 127.0.0.1 9093 /home/swamiji/edge_logs8/ /home/swamiji/base_logs/
To run the client for put() and get()
To register a stream
python EdgeClient.py 2 127.0.0.1 7000 82 127.0.0.1 9090 stream_id_1 1 1 /home/swamiji/elfstore/logs/ 700 1 1 client_1 1
To write
python EdgeClient.py 2 127.0.0.1 7000 82 127.0.0.1 9090 stream_id_1 1 5 /home/swamiji/elfstore/logs/ 700 1 1 client_2 1
To read
python EdgeClient.py 2 127.0.0.1 7000 82 127.0.0.1 9090 stream_id_1 1 6 /home/swamiji/elfstore/logs/ 700 1 1 client_3 1
# cli command
put --path=/home/swamiji/phd/EdgeFS/ElfStore/edgefs/microbatch_data/microbatch0.txt --streamId=stream_id_1 --start=300 --singleBlock