gan-tu / cppgfs2.0 Goto Github PK
View Code? Open in Web Editor NEWA distributed Google File System (GFS), partially implemented in C++.
Home Page: http://bit.ly/gfs-impl
License: Apache License 2.0
A distributed Google File System (GFS), partially implemented in C++.
Home Page: http://bit.ly/gfs-impl
License: Apache License 2.0
It showed the below error when trying to build in Mac OS X.
ERROR: /private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/com_google_protobuf/BUILD:975:21: in proto_lang_toolchain rule @com_google_protobuf//:cc_toolchain: '@com_google_protobuf//:cc_toolchain' does not have mandatory provider 'ProtoInfo'.
INFO: Repository boringssl instantiated at:
/Users/balachandhar/Documents/cppGFS2.0/WORKSPACE:52:10: in
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/com_github_grpc_grpc/bazel/grpc_deps.bzl:130:21: in grpc_deps
Repository rule http_archive defined at:
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Repository remotejdk11_macos instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:102:6: in
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Repository remote_java_tools_darwin instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:219:6: in
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
/private/var/tmp/_bazel_balachandhar/14943156afbb9d37410525ecd02ad6fd/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
ERROR: Analysis of target '//src/protos/grpc:cc_chunk_server_lease_service_grpc' failed; build aborted: Analysis of target '@com_google_protobuf//:cc_toolchain' failed
INFO: Elapsed time: 8.781s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (72 packages loaded, 2959 targets configured)
Handles writing system logs. Can be to console/file. Can consider Log4cxx if trivial.
Bazel's rules_foreign_cc may be useful here
Acquires proper read/write locks on file namespaces for concurrent master operations to properly serialize its operational order
Update: the lock is released when replying to client, and this is NOT holding read/write locks for the client, but simply for master's own concurrency/serialization purposes
Handles storing and retrieving chunks.
Can use LevelDB for this; for BUILD, consider using rule_cc_foreign or this pull request
Uses gRPC to handle communications between nodes.
This defines all the gRPC endpoints that client, master, chunk server has to individually implement, and handles the bulk of gRPC communication work.
Note that this means after this module is finished, implementations for each grpc call are done individually by client, master, and chunk server code. This is where our crucial business logics are.
See below for high level explanation:
Note: I found this has high overlap between metadata manager and chunk server manager, and michael@ may also wants more things to do, so I instead assign this to both of you to coordinate
Implements how nodes read configs. Such as IPs, directories etc. can either read from yaml/toml file, command line, or environment variables defined by Dockerfile
Public client API exposed to end users for supported GFS file operations. This is what a user of our GFS uses to access files. This is also what we use for integration testing.
This will be open
, close
, create
, read,
and write
APIs. Every one, except close
will talk to a server with GFS logics; close
is simply deallocating memory resources used by client for the given file operation session
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.