README 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Net::ZooKeeper - Perl extension for Apache ZooKeeper
  2. ====================================================
  3. Net::ZooKeeper provides a Perl interface to the synchronous C API
  4. of Apache ZooKeeper. ZooKeeper is coordination service for
  5. distributed applications.
  6. For details see the ZooKeeper home page at:
  7. http://zookeeper.apache.org/
  8. INSTALLATION
  9. To install this module type the following, first install the
  10. zookeeper C client, then:
  11. perl Makefile.PL
  12. make
  13. ZK_TEST_HOSTS=host:port,... make test
  14. make install
  15. If the C headers and library are installed in non-standard
  16. locations, specify them as arguments to Makefile.PL:
  17. perl Makefile.PL \
  18. --zookeeper-include=/path/to/zookeeper/client/include \
  19. --zookeeper-lib=/path/to/zookeeper/client/lib
  20. The path supplied to the --zookeeper-include option should
  21. identify the directory that contains the zookeeper.h and other
  22. ZooKeeper C include files.
  23. The path supplied to the --zookeeper-lib option should identify
  24. the directory that contains the libzookeeper_mt library.
  25. When running "make test", if no ZK_TEST_HOSTS environment
  26. variable is set, many tests will be skipped because no connection
  27. to a ZooKeeper server is available. To execute these tests,
  28. the ZK_TEST_HOSTS variable may be assigned a list of one or more
  29. ZooKeeper host:port pairs, e.g., "localhost:7100,otherhost:7200".
  30. The ZK_TEST_PATH environment variable, if defined, specifies
  31. the ZooKeeper path under which all test nodes should be created.
  32. The tests expect to have full read/write/create/delete/admin
  33. ZooKeeper permissions under this path. If no ZK_TEST_PATH
  34. variable is defined, the root ZooKeeper path ("/") is used.
  35. DEPENDENCIES
  36. Version 3.1.1 of ZooKeeper is required at a minimum.
  37. For version 3.1.1, you may also want to apply some of these
  38. additional patches to the ZooKeeper C API code:
  39. https://issues.apache.org/jira/browse/ZOOKEEPER-262
  40. https://issues.apache.org/jira/browse/ZOOKEEPER-318
  41. For version 3.1.1, you may also want to apply some of these
  42. additional patches to the ZooKeeper C API code:
  43. https://issues.apache.org/jira/browse/ZOOKEEPER-262
  44. https://issues.apache.org/jira/browse/ZOOKEEPER-466
  45. This module requires that the multi-threaded version of the
  46. ZooKeeper C API client library be available on your system.
  47. This in turn implies that the POSIX pthread library is available
  48. as well.
  49. COPYRIGHT AND LICENCE
  50. Licensed to the Apache Software Foundation (ASF) under one
  51. or more contributor license agreements. See the NOTICE file
  52. distributed with this work for additional information
  53. regarding copyright ownership. The ASF licenses this file
  54. to you under the Apache License, Version 2.0 (the
  55. "License"); you may not use this file except in compliance
  56. with the License. You may obtain a copy of the License at
  57. http://www.apache.org/licenses/LICENSE-2.0
  58. Unless required by applicable law or agreed to in writing, software
  59. distributed under the License is distributed on an "AS IS" BASIS,
  60. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  61. See the License for the specific language governing permissions and
  62. limitations under the License.