hbase init & read - how to do close the rhbase connection ?

80 views
Skip to first unread message

Kader

unread,
Apr 13, 2016, 8:37:51 AM4/13/16
to RHadoop

We are doing hbase reads via thrift server. We use hb.init() to initialize the connection. We scan the rhbase table and do the processing.

Shouldn't we close the connection that we made with hbase via thrift. Only initialize instructions are given. What about connection close and how is it being handled ? 

Kader

unread,
Apr 15, 2016, 8:21:24 AM4/15/16
to RHadoop
I was looking at the hb.init( ) function implementation - there is reg.finalizer which looks to be deleting the client - Will this do the connection closure for rhbase ? When will reg.finalizer be triggered ? Can anyone explain on this ?

Thanks,
Kader
Reply all
Reply to author
Forward
0 new messages