Posts

Showing posts with the label Zookeeper

Setting up a ZooKeeper Quorum on Amazon EC2 with Exhibitor

Image
Hi in this post i will try to explain step by step how to set up a ZooKeeper Quorum in Amazon EC2 with the help of Exhibitor. This was done as a part of my final year project so i thought i should share this because it might be helpful to others. I assume that you know about ZooKeeper otherwise you want be reading this article right. anyway if you want to learn about ZooKeeper you can check out the ZooKeeper home page  here . Exhibitor So i will first introduce you to Exhibitor its actually a supervisory system that is built using java technology to monitor and supervise ZooKeeper. It provides some cool features that will help you manage your ZooKeeper instances. You can download Exhibitor here . And if you want to learn more about Exhibitor take a look at there wiki page here . Exhibitor allows you to configure ZooKeeper instances through a very clean web interface. the config panel will look like this. As you can see you can def...

Debugging Zookeeper with eclipse

Image
This will be a very small post but i thought i should post it because the time i wasted trying to do this simple thing. what i wanted to do was to run the Zookeeper JUnit test one by one so i could debug them to understand how the system works by looking at how the test cases run. I use Eclipse as my IDE so i wanted to do this using Eclipse. In Eclipse if there are JUnit test classes in the source code you can run a single test class by opening the class ( the .java ) right click on it and go to Debug As --> JUnit Test and simple run the tests in that test class. I'm also a novice in this area so i am sure i might have made a mistake or two but i couldn't get Debug As ---> JUnit Test to appear when i checkout the project using subeclipse. So this is the way that worked for me. Checkout Zookeeper Just checkout Zookeeper from svn using the following command. svn checkout http://svn.apache.org/repos/asf/zookeeper/trunk/ Build Eclipse project files Then go to ...