README 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. If the C client supports Cyrus SASL (ZOOKEEPER-1112), it can also be
  26. enabled in the Perl binding by passing a --with-sasl2 flag (and,
  27. optionally, non-standard locations):
  28. perl Makefile.PL \
  29. --with-sasl2 \
  30. --sasl2-include=/path/to/sasl2/include \
  31. --sasl2-lib=/path/to/sasl2/lib
  32. When running "make test", if no ZK_TEST_HOSTS environment
  33. variable is set, many tests will be skipped because no connection
  34. to a ZooKeeper server is available. To execute these tests,
  35. the ZK_TEST_HOSTS variable may be assigned a list of one or more
  36. ZooKeeper host:port pairs, e.g., "localhost:7100,otherhost:7200".
  37. The ZK_TEST_PATH environment variable, if defined, specifies
  38. the ZooKeeper path under which all test nodes should be created.
  39. The tests expect to have full read/write/create/delete/admin
  40. ZooKeeper permissions under this path. If no ZK_TEST_PATH
  41. variable is defined, the root ZooKeeper path ("/") is used.
  42. The ZK_TEST_SASL_OPTIONS environment variable, if defined, provides a
  43. JSON-encoded map of SASL authentication options, enabling SASL tests.
  44. E.g.,
  45. {
  46. "host": "zk-sasl-md5",
  47. "mechlist": "DIGEST-MD5",
  48. "service": "zookeeper",
  49. "user": "bob",
  50. "password_file": "bob.secret"
  51. }
  52. DEPENDENCIES
  53. Version 3.1.1 of ZooKeeper is required at a minimum.
  54. For version 3.1.1, you may also want to apply some of these
  55. additional patches to the ZooKeeper C API code:
  56. https://issues.apache.org/jira/browse/ZOOKEEPER-262
  57. https://issues.apache.org/jira/browse/ZOOKEEPER-318
  58. For version 3.1.1, you may also want to apply some of these
  59. additional patches to the ZooKeeper C API code:
  60. https://issues.apache.org/jira/browse/ZOOKEEPER-262
  61. https://issues.apache.org/jira/browse/ZOOKEEPER-466
  62. This module requires that the multi-threaded version of the
  63. ZooKeeper C API client library be available on your system.
  64. This in turn implies that the POSIX pthread library is available
  65. as well.
  66. COPYRIGHT AND LICENCE
  67. Licensed to the Apache Software Foundation (ASF) under one
  68. or more contributor license agreements. See the NOTICE file
  69. distributed with this work for additional information
  70. regarding copyright ownership. The ASF licenses this file
  71. to you under the Apache License, Version 2.0 (the
  72. "License"); you may not use this file except in compliance
  73. with the License. You may obtain a copy of the License at
  74. http://www.apache.org/licenses/LICENSE-2.0
  75. Unless required by applicable law or agreed to in writing, software
  76. distributed under the License is distributed on an "AS IS" BASIS,
  77. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  78. See the License for the specific language governing permissions and
  79. limitations under the License.