Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 1.44 KB

File metadata and controls

45 lines (24 loc) · 1.44 KB

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.