Giter Site home page Giter Site logo

distributedsystems's Introduction

The DFS is designed as a globally centralized system.
There are three types of nodes: 
1) client - queries the server
2) master - Name Node analog from HDFS
3) slave - the actual data node.===

Client sends all requests to Master, which determines from the hash value of the path
which slave is supposed to store the specified path. The master uses a lookup
tree to quickly find the slave. Once the slave has been identified the master sends
the request to that slave and optionally waits for reply, this reply is resent to client.
The DFS follows "write once, read many" approach - i.e. no file editing is supported.

Supported commands:
init - initialize the client and register it in slaves
fread [path] - read contents of the file
fwrite [path] [message] - write into the file
fdel [path] - delete the file
finfo - get the file info
cd - change the current directory
ls [path] - view the contents of the directory, path is optional
mkdir - make directory
rmdir - remove directory
exit - exit from system

To launch master:
java -jar dfs.jar -m [ip]:[port] [slaves file] [log.file]

for example,
java -jar dfs.jar -m localhost:50000 slaves.txt master.txt

To launch client:
java -jar dfs.jar -c [ip]:[port] [master ip]:[master port] [log.file]

for example,
java -jar dfs.jar -c localhost:50002 localhost:50000 client.txt

To launch client:
java -jar dfs.jar -s [ip]:[port]

for example,
java -jar dfs.jar -s localhost:50001

distributedsystems's People

Contributors

anurgali avatar bolatkhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.