Python(9) Happybase
来源:互联网 发布:dedecms tag 数据库 编辑:程序博客网 时间:2024/05/30 23:09
0. 资料
- 官网
1. 安装
- 进入响应环境后,安装
happybase
与thrift
pip install happybasepip install thrift
- 错误处理:
- 出现的错误:
thriftpy.parser.exc.ThriftParserError: ThriftPy does not support generating module with path in protocol 'd'
- Windows中才会出现此问题。
- 参考此文处理
- 解决方案:修改
Lib\site-packages\thriftpy\parser\parser.py
文件中的代码:
- 出现的错误:
# 修改前url_scheme = urlparse(path).schemeif url_scheme == '': with open(path) as fh: data = fh.read()elif url_scheme in ('http', 'https'): data = urlopen(path).read()else: raise ThriftParserError('ThriftPy does not support generating module ' 'with path in protocol \'{}\''.format( url_scheme))# 修改后url_scheme = urlparse(path).schemeif url_scheme == '': with open(path) as fh: data = fh.read()elif url_scheme in ('c', 'd','e','f'): # 代表c盘、d盘、e盘、f盘等 with open(path) as fh: data = fh.read()elif url_scheme in ('http', 'https'): data = urlopen(path).read()else: raise ThriftParserError('ThriftPy does not support generating module ' 'with path in protocol \'{}\''.format( url_scheme))
阅读全文
0 0
- Python(9) Happybase
- python 通过happybase 访问hbase
- HappyBase安装&Python操作HBase
- [bigdata-016] python happybase 操作hbase
- HappyBase: 在 Python 中快速访问 HBase
- 安装happybase,thriftpy不成功
- 关于happybase中 row_prefix 参数
- Hbase实战教程之happybase
- happybase put()操作默认使用批量?
- 使用happybase执行scan()报错RetriesExhaustedException解决
- Python中函数库的引用--Python(9)
- Python笔记9:Python中的json
- Learning python 系列9
- python challenge 7-9
- Python笔记(9)
- python笔记《9》
- Python Exercise #9
- python手记(9)
- Python(8) 魔法方法 `__name__`
- @RequestMapping的用法
- 浅尝TensorFlow on Kubernetes
- (三)微服务架构
- 阿里巴巴Java开发手册v1.3.0
- Python(9) Happybase
- java导出word文档
- Qt生成随机数
- 栈和堆
- Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.1.xsd)
- Python(10) Numpy操作
- 大话数据结构读书笔记(2)----线性表(1)
- [zigbee] zcl read attributes
- 微信公众号和服务器连接