All Projects → 3601314 → hbase-python

3601314 / hbase-python

Licence: other
hbase-python is a pure python package used to access HBase.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to hbase-python

mizo
Super-fast Spark RDD for Titan Graph Database on HBase
Stars: ✭ 24 (-36.84%)
Mutual labels:  hbase
hdocdb
HBase as a JSON Document Database
Stars: ✭ 24 (-36.84%)
Mutual labels:  hbase
Spark DB Connector
Use Scala API to read/write data from different databases,HBase,MySQL,etc.
Stars: ✭ 24 (-36.84%)
Mutual labels:  hbase
NoSQLDataEngineering
NoSQL Data Engineering
Stars: ✭ 25 (-34.21%)
Mutual labels:  hbase
orion
Management and automation platform for Stateful Distributed Systems
Stars: ✭ 77 (+102.63%)
Mutual labels:  hbase
dpkb
大数据相关内容汇总,包括分布式存储引擎、分布式计算引擎、数仓建设等。关键词:Hadoop、HBase、ES、Kudu、Hive、Presto、Spark、Flink、Kylin、ClickHouse
Stars: ✭ 123 (+223.68%)
Mutual labels:  hbase
Hgraphdb
HBase as a TinkerPop Graph Database
Stars: ✭ 226 (+494.74%)
Mutual labels:  hbase
hbase-meta-repair
Repair hbase metadata table from hdfs.
Stars: ✭ 36 (-5.26%)
Mutual labels:  hbase
DataX-src
DataX 是异构数据广泛使用的离线数据同步工具/平台,实现包括 MySQL、Oracle、SqlServer、Postgre、HDFS、Hive、ADS、HBase、OTS、ODPS 等各种异构数据源之间高效的数据同步功能。
Stars: ✭ 21 (-44.74%)
Mutual labels:  hbase
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (-23.68%)
Mutual labels:  hbase
Lidea
大型分布式系统实时监控平台
Stars: ✭ 28 (-26.32%)
Mutual labels:  hbase
replicator
MySQL Replicator. Replicates MySQL tables to Kafka and HBase, keeping the data changes history in HBase.
Stars: ✭ 41 (+7.89%)
Mutual labels:  hbase
hbase-prometheus-monitoring
No description or website provided.
Stars: ✭ 19 (-50%)
Mutual labels:  hbase
phoenix
Apache Phoenix / Hbase Spring Boot Microservices
Stars: ✭ 23 (-39.47%)
Mutual labels:  hbase
disk
基于hadoop+hbase+springboot实现分布式网盘系统
Stars: ✭ 53 (+39.47%)
Mutual labels:  hbase
Node Hbase
Asynchronous HBase client for NodeJs using REST
Stars: ✭ 226 (+494.74%)
Mutual labels:  hbase
Real-time-log-analysis-system
🐧基于spark streaming+flume+kafka+hbase的实时日志处理分析系统(分为控制台版本和基于springboot、Echarts等的Web UI可视化版本)
Stars: ✭ 31 (-18.42%)
Mutual labels:  hbase
xxhadoop
Data Analysis Using Hadoop/Spark/Storm/ElasticSearch/MachineLearning etc. This is My Daily Notes/Code/Demo. Don't fork, Just star !
Stars: ✭ 37 (-2.63%)
Mutual labels:  hbase
BigInsights-on-Apache-Hadoop
Example projects for 'BigInsights for Apache Hadoop' on IBM Bluemix
Stars: ✭ 21 (-44.74%)
Mutual labels:  hbase
hbase-native-client
Apache HBase Native Client
Stars: ✭ 30 (-21.05%)
Mutual labels:  hbase

hbase-python

(The development of this package has not finished.)

hbase-python is a python package used to work HBase.

It is now tested under HBase 1.2.6.

Before using HBase, we are familiar with MongoDB and pymongo. While, when coming to HBase, we found it is not easy to access the database via python. So, I spent some days to start this project and hope it can be helpful to our daily research work. The thought of this package comes from "happybase" and "starbase", and I am trying to make the API behaves like "pymongo".

Dependencies

  • Python 3.4+
  • requests

Installation

The package can be installed from PyPI repository:

pip3 install hbase-python

Examples

Get a row by key:

import hbase

zk = 'sis3.ustcdm.org:2181,sis4.ustcdm.org:2181'

if __name__ == '__main__':
    with hbase.ConnectionPool(zk).connect() as conn:
        table = conn['mytest']['videos']
        row = table.get('00001')
        print(row)
    exit()

Scan a table:

import hbase

zk = 'sis3.ustcdm.org:2181,sis4.ustcdm.org:2181'

if __name__ == '__main__':
    with hbase.ConnectionPool(zk).connect() as conn:
        table = conn['mytest']['videos']
        for row in table.scan():
            print(row)
    exit()

Put a record to a table:

import hbase

zk = 'sis3.ustcdm.org:2181,sis4.ustcdm.org:2181'

if __name__ == '__main__':
    with hbase.ConnectionPool(zk).connect() as conn:
        table = conn['mytest']['videos']
        table.put(hbase.Row(
            '0001', {
                'cf:name': b'Lily',
                'cf:age': b'20'
            }
        ))
    exit()

Write a file to a table:

import hbase

zk = 'sis3.ustcdm.org:2181,sis4.ustcdm.org:2181'

if __name__ == '__main__':
    with hbase.ConnectionPool(zk).connect() as conn:
        table = conn['mytest']['videos']
        table.write_file(video_file)  # default filename is "test_video.mp4"
    exit()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].