Giter Site home page Giter Site logo

cmpe275project1's Introduction

cmpe275Project1

Team project on CMPE275

  1. Download MySQL 5.7.18
  2. Create a database called “FileDB” with a table named “FileChunk” in MySQL.
create database FileDB
TestSQLOperations testSQLOperations = new TestSQLOperations();
testSQLOperations.createTable();
  1. Download Google Protocol Buffer v3.2.

  2. Build the protobuf files:

    ./build_pb.sh. 
    
  3. Compile all java files using Apache Ant:

    ant build 
    
  4. Start the server :

    ./startServer.sh <config file> 
    

    Note: the config file must have the ips and ports of all the nodes in the network.

  5. Start the client:

    ./startClient.sh <cluster_id>
    

    The client has 6 operations:

     1. ping <cluster id>: ping to a cluster.
     
     2. ls: retrieve a list of all files stored in the server
     
     3. leader: get leader’s ip and port from redis server
     
     4. read <fileName> : retrieve a file from the network.
     
     5. write <fileName>:  upload a file from the client’s project directory to the network.
     
     6. quit: exit the client.
    

cmpe275project1's People

Contributors

xuanquangpham avatar henrywan16 avatar xiaoshan1213 avatar nqngo22 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  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.