hbase init & read - how to do close the rhbase connection ?
83 views
Skip to first unread message
Kader
unread,
Apr 13, 2016, 8:37:51 AM4/13/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 ?