- Build the project:
mvn -DskipTests package
- Run the Introducer node:
bash scripts/introducer.sh <port>
- For example, to run locally:
bash scripts/introducer.sh 3000
- For example, to run locally:
- Run the Member node:
bash scripts/member.sh <port> <introducer-port>
- For example, to run locally:
bash scripts/member.sh 3001 127.0.0.1 3000
- For example, to run locally:
Arguments:
sdfsfilename
- arbitrary string, is the name of the file in SDFSlocalfilename
- the Unix-style local file system namenum-versions
- no more than 5
join
- join the networkleave
- leave the networklist_mem
- display the local membership listlist_self
- display self informationput <localfilename> <sdfsfilename>
- put file from local dir into SDFS or update an existing fileget <sdfsfilename> <localfilename>
- fetch file from SDFS to local dirdelete <sdfsfilename>
- delete file from SDFSls <sdfsfilename>
- list all machine (VM) addresses where this file is currently being storedstore
- list all files currently being stored at this machine (VM)get-versions <sdfsfilename> <num-versions> <localfilename>
- get all the lastnum-version
versions ofsdfsfilename
and store them inlocalfilename
VM | Private IP | Public IP |
---|---|---|
iDunno-vm-1 | 10.0.0.4 | 20.5.240.52 |
iDunno-vm-2 | 10.0.0.5 | |
iDunno-vm-3 | 10.0.0.6 | |
iDunno-vm-4 | 10.0.0.8 |