In order to download the datasets, it can be done with SCP:
scp USERNAME@pampero.itba.edu.ar:/afs/it.itba.edu.ar/pub/pod/FILE.csv LOCAL_PATH
Where LOCAL_PATH is the path to where the file will be downloaded to (it can be moved later)
Files can be placed in an examples directory in the root of the project.
To build the project just run:
mvn clean install
At least two(2) terminals are going to be needed. These terminals are noted A, B, etc.
NOTE: This commands are meant to be run from the root of the project.
From terminal A run:
cd server/target/
tar -xzf tpe2-g2-server-1.0-SNAPSHOT-bin.tar.gz
cd tpe2-g2-server-1.0-SNAPSHOT
chmod u+x $(ls | egrep run-)
./run-server xx.xx.xx.*
Where xx.xx.xx.*
is the interface where the server will run, for example 192.168.1.*
The condensed command is:
cd server/target/ && tar -xzf tpe2-g2-server-1.0-SNAPSHOT-bin.tar.gz && cd tpe2-g2-server-1.0-SNAPSHOT && chmod u+x $(ls | egrep run-) && ./run-server xx.xx.xx.*
To run the client queries, from terminal B run:
cd client/target/
tar -xzf tpe2-g2-client-1.0-SNAPSHOT-bin.tar.gz
cd tpe2-g2-client-1.0-SNAPSHOT
chmod u+x $(ls | egrep query)
The condensed command is:
cd client/target/ && tar -xzf tpe2-g2-client-1.0-SNAPSHOT-bin.tar.gz && cd tpe2-g2-client-1.0-SNAPSHOT && chmod u+x $(ls | egrep query)
To run the query 1, use the following command:
./query1 -Dcity=BUE -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/
./query1 -Dcity=VAN -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/
To run the query 2, use the following command:
./query2 -Dcity=BUE -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dmin=300
./query2 -Dcity=VAN -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dmin=300
To run the query 3, use the following command:
./query3 -Dcity=BUE -Daddresses='192.168.1.21:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dn=3
./query3 -Dcity=VAN -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dn=3
To run the query 4, use the following command:
./query4 -Dcity=BUE -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dmin=11000 -Dname='Fraxinus pennsylvanica'
./query4 -Dcity=VAN -Daddresses='192.168.1.194:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/ -Dmin=11000 -Dname='Fraxinus pennsylvanica'
To run the query 5, use the following command:
./query5 -Dcity=BUE -Daddresses='192.168.1.192:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/
./query5 -Dcity=VAN -Daddresses='192.168.1.192:5701' -DinPath=./../../../examples/ -DoutPath=./../../../examples/
This is only for internal testing, the script to run all queries can be used like this:
chmod u+x ./run-all.sh
./run-all.sh -Daddresses='192.168.1.29:5701'
Second Semester of 2020 - ITBA
Florencia Petrikovich - fpetrikovich@itba.edu.ar
Gonzalo Hirsch - ghirsch@itba.edu.ar
Marina Fuster - mfuster@itba.edu.ar
Gastón Lifschitz - glifschitz@itba.edu.ar