Here's a simple Voldemort test program. It's basically the one that ships with the project but with a few, little modifications to make it work on Windows/Cygwin.
First off, the server scripts are all Unix shell scripts. So, I had to install Cygwin on my Windows 7 laptop. Then the most essential bin/voldemort-server.sh script had to be modified a little to work with Cygwin because Java does not recognize the Cygwin mapped Path and Classpaths like /cygdrive/d/Dump/voldemort-0.81. You have to wrap paths with cygpath to map them back to the actual paths: java -cp $(cygpath -w -p -l -a $CLASSPATH) ...
The simple Java client test program needs dist/voldemort-0.81.jar and dist/voldemort-test-0.81.jar. I had to find out about the second jar from their issues list.
That's it! Now, you can start the single node server and run the client Java program as many times as you like.
All the files are available here: http://gist.github.com/472163. Here are the snippets.
Client:
Server script:
Client output:
Sunday, July 11, 2010
A simple (Project) Voldemort test on Windows
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment