forked from smingins/zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
70 lines (44 loc) · 2.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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.