gdfs

module
v0.0.0-...-1a12c4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2020 License: Apache-2.0

README

License Language

gDFS

gDFS is a distributed file system in Go.

Getting Started

  • Download Go 1.15

  • clone code

$ git clone https://github.com/WineChord/gdfs.git
$ cd gdfs 
  • inside one terminal,
$ make # this will build namenode, datanode, client 
$ make snamenode # this will start the namenode 
  • inside another terminal,
$ ./startdatanodes.sh # this will start datanodes on every node 
$ # stopdatanodes.sh # this will stop all datanodes 
  • inside the 3rd terminal,
$ bin/client -format # this will format the dfs
$ bin/client -ls / # see whether / dir is empty
$ bin/client -copyFromLocal somefile / # copy local file to dfs /
$ bin/client -copyToLocal /somefile . # copy dfs file to local dir .
$ bin/client -calMeanVal /somefile # calculate mean and variance of the file (list of numbers)

License

gDFS is under the Apache 2.0 license. See the LICENSE file for details.

Directories

Path Synopsis
cmd
client command
datanode command
local command
namenode command
Package namenode server requests from datanode and client.
Package namenode server requests from datanode and client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL