Giter Club home page Giter Club logo

ece419's Introduction

Distributed KV Store

You need a java environment first

Install ant which is a java project builder, on mac/linux run: brew install ant

We used Zookeeper, log4j, junit for this project, you should install them ahead

To build: run ant in the project root, ant will run build.xml file to build the whole project.

To run: you need to start Zookeeper with script the zookeeper-3.4.11/bin/zkServer.sh, use zkServer.sh start

you need to set up ecs server first, use command: java -jar m2-ecs.jar

note that this server takes 8000 by default, you should avoid using it in the future

you can set up as many servers as you want, use commnad: java -jar m2-server.jar -p {port number}

you can set up many clients, use command: java -jar m2-client.jar {port number} if you are using the same device, please avoid using duplicate ports

Servers will run and load existing database files if there are any, no more jobs needed here

On client side, you need to connect to a server first, use command: connect {ip address} {port number}

Then you can input commands:

put {key} {value}: to put a kv pair in to the system

get {key}: to get a key from the system

tput: to start a transaction (then you can type many to put pairs in a transaction)

tput confirm: to end a transaction

ece419's People

Contributors

davidyichengwei avatar lepabryce 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.