https://github.com/python-tools/pyhbasecli
基于thrift2的hbase客户端
https://github.com/python-tools/pyhbasecli
Last synced: 7 months ago
JSON representation
基于thrift2的hbase客户端
- Host: GitHub
- URL: https://github.com/python-tools/pyhbasecli
- Owner: Python-Tools
- License: mit
- Created: 2022-05-05T09:54:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-16T11:27:05.000Z (over 3 years ago)
- Last Synced: 2025-06-09T13:52:15.475Z (7 months ago)
- Language: Python
- Size: 6.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pyhbasecli
基于thrift2的hbase客户端
+ author: hsz
keywords: hbase,thrift
## 特性
+ 可以连接处理阿里云hbase
+ 使用的是[thrift2版本](https://github.com/apache/hbase/blob/master/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift?spm=a2c6h.12873639.article-detail.6.216d35d1BSozCF&file=hbase.thrift)
+ 支持http方式连接
+ python友好的接口设计
## 安装
```bash
pip install pyhbasecli
```
## 例子
```python
with HBaseCli(
url=URL,
headers={"ACCESSKEYID": "root", "ACCESSSIGNATURE": "root"}) as client:
nsinfo = client.show_namespaces()
print(nsinfo)
```
## todo
+ 增加socket方式连接