Follow these instructions to run the Hybrid Distributed File System -
- Run following commands on each of the node - git clone https://github.com/RahulSethi070801/Hybrid-Distributed-File-System.git and checkout master
- Build the main.cpp program on all machines on your distributed system using make
- Daemon executables would be build with g++ compiler
- Run the introducer on one of the machine using pre configured port number using ./Daemon $updPort $tcpPort introducerVMName remote introducer
- Run the daemon on all other machines using following command ./Daemon $updPort $tcpPort introducerVMName remote
- To check the list of nodes in the HyDFS system enter list_mem_ids
- Store any local files in ./files/remote/local directory
- Run create localFileName hyDFSFileName to create hyDFSFileName in the HyDFS
- Run get hyDFSFileName localFileName from any node to fetch hyDFSFileName to the local storage
Alternatively, to build daemon on all machines run bash init.sh. Make sure to follow instruction and change paths to secret tokens and passwords in the script. You can also configure port number for server in the file.