A simple GFS implementation for a Harbour.Spase assigment
First, clone this repository
git clone https://github.com/mjason98/hsgfs
cd hsgfdThen, fun the following command to build and put to runing the chunk servers and the server manager:
docker-compose build
docker-compose up -dTo use the client to create, delete and get a file, it will be necessary to create a python enviromnet to run the client:
cd client
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtto use the cliente chose from the following commands:
| Command | Description |
|---|---|
| add | Add a file |
| rm | Remove a file |
| get | Download a file |
| desc | Describe a file, with its name and size |
for example, inside client folder with the environment activated:
python main.py add filename.extfor more help use:
python main.py -h