Coder Social home page Coder Social logo

Comments (8)

wbolster avatar wbolster commented on August 13, 2024

This looks like a network problem, not a HappyBase issue. Did you specify the correct host name and port? Is there a Thrift server listening on that host and port? (The Thrift server is a separate daemon.)

from happybase.

larissadias avatar larissadias commented on August 13, 2024

I start Thrift with the command:

Hbase thrift start -p 6000

and in the code I specify the port that hbase have to use

2013/3/18 Wouter Bolsterlee [email protected]

This looks like a network problem, not a HappyBase issue. Did you specify
the correct host name and port? Is there a Thrift server listening on that
host and port? (The Thrift server is a separate daemon.)


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-15078557
.

Atenciosamente,
Ana Larissa da S. Dias
Graduanda de Engenharia da Computação - UFPA

from happybase.

wbolster avatar wbolster commented on August 13, 2024

Can you check with 'telnet' or netstat -l' that the server is actually listening? It still looks like a networking problem to me. The output from 'strace -e connect your-program.py' might help as well.

from happybase.

wbolster avatar wbolster commented on August 13, 2024

Btw, did you specify the right compat argument to the Connection constructor? If you don't speak the correct protocol the Thrift server acts in very unexpecting ways (including exiting if I recall correctly). So, please try this:

  • Restart the Thrift daemon
  • Specify the correct compat key
  • Try running your code again

from happybase.

larissadias avatar larissadias commented on August 13, 2024

Thanks, Wouter!
But Don't work...i don't know why i receive this error everytime:
Traceback (most recent call last):
File "dumpW.py", line 109, in
table.put(idate+'_'+str(count) , {'info:latitude': dados['latitude']
,'info:longitude': dados['longitude'], 'info:velocidade':
dados['velocidade'], 'info:direcao': dados['direcao'] })
File
"/home/Larissa/Downloads/ENV/lib/python2.6/site-packages/happybase/api.py",
line 618, in put
batch.put(row, data)
File
"/home/Larissa/Downloads/ENV/lib/python2.6/site-packages/happybase/api.py",
line 841, in exit
self.send()
File
"/home/Larissa/Downloads/ENV/lib/python2.6/site-packages/happybase/api.py",
line 779, in send
self.table.client.mutateRows(self.table.name, bms)
File
"/home/Larissa/Downloads/ENV/lib/python2.6/site-packages/happybase/hbase/Hbase.py",
line 1450, in mutateRows
self.recv_mutateRows()
File
"/home/Larissa/Downloads/ENV/lib/python2.6/site-packages/happybase/hbase/Hbase.py",
line 1472, in recv_mutateRows
raise result.io
happybase.hbase.ttypes.IOError: IOError(_message='Connection refused')

2013/3/20 Wouter Bolsterlee [email protected]

Btw, did you specify the right compat argument to the Connectionconstructor? If you don't speak the correct protocol the Thrift server acts
in very unexpecting ways (including exiting if I recall correctly). So,
please try this:

  • Restart the Thrift daemon
  • Specify the correct compat key
  • Try running your code again


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-15194195
.

Atenciosamente,
Ana Larissa da S. Dias
Graduanda de Engenharia da Computação - UFPA

from happybase.

wbolster avatar wbolster commented on August 13, 2024

Which version of HBase and which version of HappyBase do you use? And which compat parameter did you specify? Can you check the logs generated by HBase and its Thrift daemon?

from happybase.

wbolster avatar wbolster commented on August 13, 2024

Another thing: can you print your 'dados' object and verify that all the values you use are actually byte strings? This could be a Thrift serialisation error at either the Python or Java side. Error handling is not that robust in the underlying libraries, it seems.

from happybase.

wbolster avatar wbolster commented on August 13, 2024

I'm closing this since no further information was provided. It seems like a configuration problem, not a HappyBase problem.

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.