Coder Social home page Coder Social logo

Comments (4)

wbolster avatar wbolster commented on August 13, 2024

Are you sure both HBase and the Thrift gateway have been upgraded? It looks like your code is talking to an old Thrift server.

— Wouter

(Sent from my phone. Please ignore the typos.)

saintthor [email protected] schreef:

i am upgrading hbase from 0.90 to 0.94. it seems ok. in hbase shell it
shows me the virson is 0.94. but happybase do not think so.

co = hb.Connection( '127.0.0.1' ) //or Connection( '127.0.0.1',
compat='0.92' )
x = co.table( 'Message' ).scan()
x.next()
Traceback (most recent call last):
File "", line 1, in
File
"/usr/local/python273/lib/python2.7/site-packages/happybase-0.4-py2.7.egg/happybase/api.py",
line 567, in scan
scan_id = client.scannerOpenWithScan(self.name, scan)
File
"/usr/local/python273/lib/python2.7/site-packages/happybase-0.4-py2.7.egg/happybase/hbase/Hbase.py",
line 1716, in scannerOpenWithScan
return self.recv_scannerOpenWithScan()
File
"/usr/local/python273/lib/python2.7/site-packages/happybase-0.4-py2.7.egg/happybase/hbase/Hbase.py",
line 1733, in recv_scannerOpenWithScan
raise x
thrift.Thrift.TApplicationException: Invalid method name:
'scannerOpenWithScan'

and using compat = '0.90' succeeds as before.

co.close()
co = hb.Connection( '127.0.0.1', compat='0.90' )
x = co.table( 'Message' ).scan()
x.next()
('52255fa14844acf3cb2e3e5e', {'Duration:': '1', 'Result:': '1',
'Content:': 'content'})

is hbase upgraded well?


Reply to this email directly or view it on GitHub:
#46

from happybase.

saintthor avatar saintthor commented on August 13, 2024

upgrade the thrift gateway after upgrading hbase? let me try.

from happybase.

wbolster avatar wbolster commented on August 13, 2024

The Thrift gateway is part of HBase, so I'd strongly suggest running the same versions.

from happybase.

saintthor avatar saintthor commented on August 13, 2024

thank you.

from happybase.

Related Issues (20)

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.