-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported framed Thrift transports results in connection resets #6
Comments
not sure about discovering the thrift version, but in hbase/lib I have a libthrift-0.8.0.jar if that helps |
the same with happybase git master |
HappyBase does not use the framed transport for the Thrift connection. Do you have any particular reason to use that transport instead if the other ones?
Travis Parker reply@reply.github.com schreef:
|
No, I'm running exactly the python code I posted above, not doing anything special. If happybase isn't using the framed transport then I guess the thrift server's log message is mis-diagnosing the issue. |
Maybe the default server side transport type has changed in 0.94. I guess it's a flag to the start-daemon thrift script.
Travis Parker reply@reply.github.com schreef:
|
starting the thrift server in the foreground with
and get this in the python client:
for |
ah HAH. the the thrift server must be started with starting it with this is worth documenting imho |
Ah, this should definitely end up in the docs. Maybe HappyBase can work with other Thrift transports as well. Reopening so that I don't forget about this. |
See issue #6. Add initial support for TFramedTransport in addition to TBufferedTransport. This means HappyBase can connect to the different Thrift server implementations in HBase 0.94.x. This is required for the nonblocking, threadedselector, and hsha implementation. The threadpool implementation requires TBufferedTransport. This change is not exposed in the API yet.
The Connection constructor now features 'transport' parameter that specifies the Thrift transport to use. Fixes issue #6.
Okay, this issues seems fixed now. I've also updated the tutorial and the API docs. Could you please have a look at http://happybase.readthedocs.org/en/latest/tutorial.html and tell me what you think? Thanks! |
looks great, thanks! |
I still see these errors on using latest code. |
@bilkulbekar Please provide more details. This usually only happens when the Thrift server speaks a different protocol than the Thrift client (HappyBase). |
happybase 0.3 with hbase 0.94.0 is getting its connection closed consistently:
and in the thrift server log:
The text was updated successfully, but these errors were encountered: