Skip to content

piyush121/DistributedKeyValueStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DistributedKeyValueStore (Non-Persistent)

In-Class Project -----Distributed Key Value storage system based on Apache Thrift-----

Refrenced Libraries :

Thrift - 0.9.3

JAVA 1.8

SLF4J - 1.7.21

To compile just type:

javac -cp ".:./Referenced_Libraries/slf4j-simple-1.7.21.jar:./Referenced_Libraries/slf4j-api-1.7.21.jar:./Referenced_Libraries/libthrift-0.9.3.jar" kvstore/*.java

OR

You can also compile by Executing the shell script ./KVCompile_Server_Client.

To run server just type:

java -cp ".:./Referenced_Libraries/slf4j-simple-1.7.21.jar:./Referenced_Libraries/slf4j-api-1.7.21.jar:./Referenced_Libraries/libthrift-0.9.3.jar" kvstore.kvserver

Server will run by default on localhost, port 9091.

To run client just type:

java -cp ".:./Referenced_Libraries/slf4j-simple-1.7.21.jar:./Referenced_Libraries/slf4j-api-1.7.21.jar:./Referenced_Libraries/libthrift-0.9.3.jar" kvstore.kvclient -Arg1 -Arg2 etc.

OR

You can also run the client by Executing the shell script ./kvcient -arg1 -arg2 etc..

You can connect the client to a different server by passing command line arguments. The client has three subcommands:

get - Example: ./kvclient -server host:port -get 'my_key' > my_value_file

set - Example: ./kvclient -server host:port -set 'my_key' 'my_value'

del - Example: ./kvclient -server host:port -del 'my_key'

The client and server are built using java and You just need to run the kvclient script to run the client with appropriate arguments.

About

Distributed Key Value storage system based on Apache Thrift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors