Comments (7)
Hey,
Thanks for reporting this. I'll check the issue and make a fix soon.
Best regards,
from starbase.
Hey, the following code works for me:
from starbase import Connection
c = Connection()
t = c.table('messages')
[row for row in t.fetch_all_rows()]
Could you provide some more information on the issue?
from starbase.
I think the problem lies on the server side. The version of HBase I used is 0.96.1, and it can't parse "" as a JSON object.
from starbase.
Confirmed on HBase 0.98.1-cdh5.1.0 (Cloudera).
{u'JVM': u'Oracle Corporation 1.7.0_55-24.55-b03',
u'Jersey': u'1.8',
u'OS': u'Linux 2.6.32-431.23.3.el6.x86_64 amd64',
u'REST': u'0.0.2',
u'Server': u'jetty/6.1.26.cloudera.2'}
from starbase.
Also happened to me with HBase 0.98.4. With default parameters I get an error, with a no-op scanner_config parameter it works.
from starbase.
I track the source and find that:
if scanner_config == "", the request data is ""
but the Content-type of starbase is application/json, so the http request will pass data "" to hbase rest server, the error occurs.
if scanner_config == {}, the request data is "{}" and it can work
ps: if scanner_config == '' , it also can work because python will convert content type to xml/text, and you also can define the batch size of scanner.
from starbase.
Thanks for tracking this down. I'll fix it ASAP.
from starbase.
Related Issues (16)
- The move to requests requires explicit auth param HOT 1
- Update requests library dependency to >=2.0 HOT 4
- Table instance _get() method always checks for table existance HOT 2
- Support IncrementColumn HOT 2
- support scan timestamp range? HOT 1
- not supporting the optional data inserting method claimed HOT 1
- Insert / update data with timestamp fails
- I got empty table list using star base? HOT 2
- Connetion does not work with Azure HDInsight HBase due to URL handling.
- unable to add dynamic column family HOT 1
- Support for automic hbase counters HOT 1
- How can retrieve set of records from hbase using starbase API like fetch or fetch_all_rows HOT 1
- Support limit with fetch and fetch_all_rows?
- How to store just column and value in the row? HOT 1
- table.fetch_all_rows() returns None. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starbase.