Distributed Processing with MapReduce for airports information.
- Running on Linux or OSX.
- Having maven installed.
- Having Java 8 or later versions.
- cd to folder containing .tar.gz
tar -xvf POD_TPE2_G12.tar.gz
cd hazelcastMapReduce
mvn clean install -DskipTests=true
After executing mvn clean install -DskipTests=true
on the same directory:
Run with CWD in root folder
cd server/target
tar -xvf hazelcastMapReduce-server-1.0-SNAPSHOT-bin.tar.gz
cd hazelcastMapReduce-server-1.0-SNAPSHOT
chmod u+x *.sh
check that hazelcast.xml configuraion of network > interfaces > interface pattern matches your network by default is set to ips of type 10.xx.xx.xx
bash ./run-server.sh
Run with CWD in root folder
cd client/target/
tar -xvf hazelcastMapReduce-client-1.0-SNAPSHOT-bin.tar.gz
cd hazelcastMapReduce-client-1.0-SNAPSHOT
chmod u+x query*
bash ./query1 -Daddresses='xx.xx.xx.xx:XXXX;yy.yy.yy.yy:YYYY' -DinPath=XX -DoutPath=YY
Where addresses is a list of ip (xx.xx.xx.xx) and port (XXXX). inPath is a path to the folder containing "aeropuetos.csv" and "movimientos.csv". outPath is a path to the folder where the file "query1.csv" and "query1.txt" are going to be created.
Run with CWD in root folder
cd client/target/
tar -xvf hazelcastMapReduce-client-1.0-SNAPSHOT-bin.tar.gz
cd hazelcastMapReduce-client-1.0-SNAPSHOT
chmod u+x query*
bash ./query2 -Daddresses='xx.xx.xx.xx:XXXX;yy.yy.yy.yy:YYYY' -DinPath=XX -DoutPath=YY -Dn=N
Where addresses is a list of ip (xx.xx.xx.xx) and port (XXXX). inPath is a path to the folder containing "aeropuetos.csv" and "movimientos.csv". outPath is a path to the folder where the file "query2.csv" and "query2.txt" are going to be created. n is the quantity of airlines
Run with CWD in root folder
cd client/target/
tar -xvf hazelcastMapReduce-client-1.0-SNAPSHOT-bin.tar.gz
cd hazelcastMapReduce-client-1.0-SNAPSHOT
chmod u+x query*
bash ./query3 -Daddresses='xx.xx.xx.xx:XXXX;yy.yy.yy.yy:YYYY' -DinPath=XX -DoutPath=YY
Where addresses is a list of ip (xx.xx.xx.xx) and port (XXXX). inPath is a path to the folder containing "aeropuetos.csv" and "movimientos.csv". outPath is a path to the folder where the file "query3.csv" and "query3.txt" are going to be created.
Run with CWD in root folder
cd client/target/
tar -xvf hazelcastMapReduce-client-1.0-SNAPSHOT-bin.tar.gz
cd hazelcastMapReduce-client-1.0-SNAPSHOT
chmod u+x query*
bash ./query4 -Daddresses='xx.xx.xx.xx:XXXX;yy.yy.yy.yy:YYYY' -DinPath=XX -DoutPath=YY -Doaci=CODE -Dn=N
Where addresses is a list of ip (xx.xx.xx.xx) and port (XXXX). inPath is a path to the folder containing "aeropuetos.csv" and "movimientos.csv". outPath is a path to the folder where the file "query4.csv" and "query4.txt" are going to be created. oaci is the oaci code of the airport that the movement starts in. n is the number of airporst in the answer.