Questions tagged [happybase]

HappyBase is a developer-friendly Python library to interact with Apache HBase. HappyBase is designed for use in standard HBase setups, and offers application developers a Pythonic API to interact with HBase. Below the surface, HappyBase uses the Python Thrift library to connect to HBase using its Thrift gateway, which is included in the standard HBase 0.9x releases.

https://happybase.readthedocs.io/en/latest/

95 questions
2
votes
1 answer

Search for the latest rows in terms of timestamp

I am looking for how to search for the latest rows in hbase table that is loaded by Nutch 2.3. I use happybase and thrift, the only example I have found is in this link…
Hakim
  • 21
  • 1
  • 4
2
votes
1 answer

Happybase filtering using rows function

I would like to perform a rows query with Happybase for some known row keys and add a value filter so that only rows matching the filter are returned. In HBase shell you can supply a filter to a get command, like so: get 'meta', 'someuser', {FILTER…
dsimmie
  • 189
  • 1
  • 2
  • 14
2
votes
1 answer

Filters in HBase: Designed to filter data row-wise, or column-wise, or both?

I've been confounded by how filters work in HBase (or, largely equivalently, in HappyBase--which I use to interact with HBase). The source of my confusion is that I can't seem to get a handle on what filters do. Some filters, like…
eriophora
  • 999
  • 1
  • 8
  • 20
2
votes
1 answer

Why does happybase return "TSocket read 0 bytes" when I try running table.scan()?

I'm using happybase to connect to HBase. So far the connection is fine. We have thrift up and running. I'm able to connect to the table (AFAIK), but when I try to scan the table I get TTransportException: TSocket read 0 bytes. Here is the code that…
Ravaal
  • 3,233
  • 6
  • 39
  • 66
2
votes
2 answers

does happybase table.put accept none string value?

I have been testing table.put using java and python. In java, you can write int or float values into a column. using happybase table.put(line_item_key, {'allinone:quantity': quantity}) it bombs out with TypeError: object of type 'int' has no…
bhomass
  • 3,414
  • 8
  • 45
  • 75
2
votes
2 answers

Writing to hbase table from python (happybase)

I am running a map-reduce job and now I want to enter values into hbase. I stream values from the map-reduce job over stdin and have a python script that inserts (puts) rows over happybase. I am running into different kinds of problems, doing the…
BenjiMan
  • 67
  • 2
  • 4
2
votes
1 answer

Connecting to HBase when just hbase.zookeeper.quorum is given

When hbase-site.xml is given by hbase.zookeeper.quorum a.example.com,b.example.com,c.example.com
emesday
  • 6,078
  • 3
  • 29
  • 46
2
votes
0 answers

Sharing HappyBase connections through Spark maps

I am working with Spark and HBase (using HappyBase library) and everything goes ok when working with small datasets. But, when working with big datasets, the connection to HBase Thrift is lost after many calls to map function. I am working with a…
1
vote
1 answer

Scan with quotes in filter throws an error

I'm using Happybase/python to get data from hbase and I already used some filtering, but now for some reason it won't work. I have the filter for my scanning code goes like that : f = "SingleColumnValueFilter ('input', '',…
user8097714
1
vote
1 answer

Scanning Bigtable by prefix with Python SDKs

I'm trying to perform searches by multiple prefixes at Google Cloud Bigtable with the Python SDK. I'm using read_rows, and I can't see a good way to search by prefix explicitly. My first option is RowSet + RowRange. I'm testing three queries, and…
juanignaciosl
  • 3,435
  • 2
  • 28
  • 28
1
vote
1 answer

TSocket read 0 bytes - happybase version 0.8

I'm trying to connect hbase by happybase framework version 0.8. I've started daemon thrift - /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 9090 from happybase.connection import Connection DEFAULT_HOST = '10.128.121.13' …
Alan Miranda
  • 125
  • 1
  • 8
1
vote
0 answers

How to add a new Column Cluster to an existed table by happybase

I want to add a new Column Cluster to an existed table,do you know how to do it?
罗成伟
  • 11
  • 2
1
vote
0 answers

Python connectivity with HBase using happybase

Can someone help me with the stacktrace generated while using happybase library? I am trying to pass a dictionary object of python 3.4 in the 'put' method and the following stack trace is generated:: x b"TWLb'25-Jan-13'" data_values {b'Low':…
Mudit Singal
  • 133
  • 1
  • 7
1
vote
0 answers

happybase hbase table.put command error?

I am trying to connect to hbase-1.2.6 from python code, is as: import happybase connection = happybase.Connection(host='localhost',port=16010) table = connection.table('blogpost') table.put('1', {'post:title': 'hello world1'}) I manually created…
andy
  • 525
  • 3
  • 6
  • 22
1
vote
1 answer

Loading csv data into Hbase using Scala

Is there a way to load csv files into hbase with scala without having to use spark? I am looking for a tool similar to Happybase.
Swetha Kannan
  • 226
  • 2
  • 8