zookeeper的python客户端安装
来源:互联网 发布:图纸画图软件 编辑:程序博客网 时间:2024/05/16 19:05
由于服务很多都是python写的,这里需要安装python客户端,所以记录下安装过程
1.由于python客户端依赖c的客户端所以要先安装c版本的客户端
cd zookeeper-3.4.5/src/c./configuremake make install
2.测试c版本客户端
./cli_mt localhost:2181Watcher SESSION_EVENT state = CONNECTED_STATEGot a new session id: 0x23f9d77d3fe0001
3.可以执行以下命令进行测试
Here's a list of command supported by the cli shell:ls <path> -- list children of a znode identified by <path>. The command set a children watch on the znode.get <path> -- get the value of a znode at <path>set <path> <value> -- set the value of a znode at <path> to <value>create [+e|+s] <path> -- create a znode as a child of znode <path>; use +e option to create an ephemeral znode, use +s option to create a znode with a sequence number appended to the name. The operation will fail if the parent znode (the one identified by <path>) doesn't exist.delete <path> -- delete the znode at <path>. The command will fail if the znode has children.sync <path> -- make sure all pending updates have been applied to znode at <path>exists <path> -- returns a result code indicating whether the znode at <path> exists. The command also sets a znode watch.myid -- prints out the current zookeeper session id.quit -- exit the shell.
4.看到以上信息说明c版本的客户端已经安装好了,下面安装python版本客户端
5.下载python扩展包,并且解压:
https://pypi.python.org/pypi/zkpython/0.4.2
6.如果找不到Pyhon.h,可能由于没有安装python26-devel
32位直接运行yum install python26-devel.i386
7.测试是否成功
import zookeeper
- zookeeper的python客户端安装
- zookeeper的python客户端
- zookeeper python客户端
- zookeeper 客户端的实现
- Zookeeper的Java客户端
- ZooKeeper 客户端的使用
- zookeeper的java客户端
- Zookeeper客户端的使用
- zookeeper 客户端编程的使用
- ZooKeeper客户端支持的语言
- ZooKeeper的客户端库Curator
- zookeeper的Java客户端API
- zookeeper的客户端操作命令
- 【zookeeper】简单的客户端命令
- zookeeper的java客户端api
- 百度网盘的 Python 客户端安装
- 安装 pylibmc(Memcached的python客户端)
- Python安装PyMysql客户端
- 听说git
- linux下怎么退出telnet
- NGUI屏幕自适应
- ASP.NET时间差(TimeSpan用法)
- C语言宏中"#"和"##"的用法
- zookeeper的python客户端安装
- epoll
- Eclipse中查看被调用方法
- MP4文件格式的解析,以及MP4文件的分割算法
- uetcav
- socket 实现文件上传下载
- Axis2關於SOAP1.1和SOAP1.2
- forward和redirect的区别
- STUN和TURN技术浅析