Giter Club home page Giter Club logo

Comments (7)

barseghyanartur avatar barseghyanartur commented on May 25, 2024

Hey,

Thanks for reporting this. I'll check the issue and make a fix soon.

Best regards,

from starbase.

barseghyanartur avatar barseghyanartur commented on May 25, 2024

@hanwentao:

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.

hanwentao avatar hanwentao commented on May 25, 2024

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.

barseghyanartur avatar barseghyanartur commented on May 25, 2024

@hanwentao

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.

jking777 avatar jking777 commented on May 25, 2024

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.

JunLuo avatar JunLuo commented on May 25, 2024

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.

barseghyanartur avatar barseghyanartur commented on May 25, 2024

@JunLuo:

Thanks for tracking this down. I'll fix it ASAP.

from starbase.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.