How do I use Apache ZooKeeper as configuration service for Cassandra Cluster?
-
Need some sample link or online tutorial or blog post that describe how to handle above use case?
-
Answer:
These deployment strategies might also help: https://docs.wso2.org/display/CLUSTER420/External+Cassandra+and+ZooKeeper+Servers The cages library listed in another answer offers a way to provide transactions over a Cassandra cluster which again proves to be counter-intuitive for most use cases.
Sumit Bisht at Quora Visit the source
Other answers
I haven't yet got a chance to taste Cassandra. But I'm sure some of the below links might help you. https://docs.wso2.org/plugins/servlet/mobile#content/view/31132483 https://docs.wso2.org/plugins/servlet/mobile#content/view/31132487 The above two links explains how to configure zookeeper and Cassandra cluster in two different models. This might not be the one you are looking for but I just thought you would like to read it also. http://code.google.com/p/cages/
Abhishek Soni
Though I have worked with zookeeper, I have not used it as a configuration service. But the following link will give you a fair idea of how to do it. https://www.inkling.com/read/hadoop-definitive-guide-tom-white-3rd/chapter-14/building-applications-with Refer to the Hadoop definitive guide ebook to get the entire sample code given in the link.
Prateek Dhawalia
I also agree that this is the right way to go: https://docs.wso2.org/display/Cluster/Default+Cassandra+Server+and+External+Zookeeper+Server. You may also find this helpful: http://weblog.leapster.org/archives/295-handling-cassandra-concurrency-issues-using-apache-zookeeper.html
Jonathan Jaffe
Zookeeper and Cassandra work well together when you use Zookeeper as a locking service. Use the http://code.google.com/p/cages/ library to manage read/writes to Cassandra. http://ria101.wordpress.com/2010/05/12/locking-and-transactions-over-cassandra-using-cages/ The above link will help you with that.
Abhiroop Sarkar
At one of my last companies we actually used zookeeper to store Cassandra configuration. Its probably overkill because zookeepers are quite hard to maintain. I would look at Netflix's Eureka as well depending on what you do with that configuration.However if you still want to use it I would suggest using Curator API rather thanĀ coding up to zookeeper directly. Which is quite tricky.
Sidharth Gupta
Related Q & A:
- How do I create a digital signature and how do I use it?Best solution by support.office.com
- Where do I find my Yahoo briefcase and how do I use it?Best solution by Yahoo! Answers
- How can I stop this new Yahoo mobile service?Best solution by Yahoo! Answers
- How do I start-up a mobile catering service?Best solution by Yahoo! Answers
- How do I use chat when I am in a room?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.