Skip to content

smingins/zookeeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zookeeper
    by Shane Mingins
    http://github.com/smingins/zookeeper/tree/master

== DESCRIPTION:

Ruby Interface to Yahoo's ZooKeeper http://zookeeper.wiki.sourceforge.net/


== FEATURES/PROBLEMS:

Work in progress -- most of the needed ZooKeeper methods have been supported.
Queue was a hacked copy from the Java Tutorial on the site --- will refactor into a useable Recipe at some point.
ACL issues exist in ZooKeeper that have been patched, but patch only seems to work on trunk (Revision 176).  See https://issues.apache.org/jira/browse/ZOOKEEPER-48

== TODO

Extend support for Ruby using ZooKeeper C API's

== SYNOPSIS:

Given a running ZooKeeper server listening for a client connection on port 2181:

  zk = ZooKeeper.new(:host => "localhost:2181")
  zk.create(:path => "/test", :data => "test_data")
  
See spec/zookeeper_spec for expected use and behaviour.

== REQUIREMENTS:

ZooKeeper installed and running.

I built zookeeper from source with the ACL patch https://issues.apache.org/jira/secure/attachment/12384350/acl_3.patch applied

For MRI version, ZooKeeper C client library (http://zookeeper.sourceforge.net/)

== INSTALL:

gem install smingins-zookeeper --source=http://gems.github.com/

jruby -S  gem install smingins-zookeeper --source=http://gems.github.com/

== TESTS:

To run specs for MRI version execute extconf.rb to create makefile and then run make to create zookeeper_c.bundle, then run specs.

== LICENSE:

(The MIT License)

Copyright (c) 2008 Shane Mingins)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Ruby Interface to ZooKeeper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published