【问题汇总】python操作hbase脚本

来源:互联网 发布:淘宝2016春秋连衣裙 编辑:程序博客网 时间:2024/05/29 16:12
1.缺少python的thrift框架

脚本是基于Thrift的client端,需要安装thrift框架。
# wget http://mirrors.hust.edu.cn/apache/thrift/0.10.0/thrift-0.10.0.tar.gz
# tar xzf thrift-0.10.0.tar.gz
# cd thrift-0.10.0
# ./configure
# make & make install
2.python缺少six包

six包的作用是让其他插件包能同时适用于py2和py3。
# wget https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz
# tar xzf six-1.10.0.tar.gz
# cd six-1.10.0
# python setup.py install
原创粉丝点击