On Wed, Jun 8, 2011 at 1:44 AM, bijieshan wrote:
> Thanks Suraj.
> Yes, It's a better method. For I haven't test on that.
> So use HTablePool, it seems we haven't need to delete Zk connections
> manually? Is that correct?
>
Yes.
St.Ack
and
> close the HTable.
> 2. Create one HTable at a time, after the scanning ,only close the HTable. So
> remain the zk connection.
>
> (Maybe I can share the HTable instance, but it wasn't what I want to discuss
> here)
>
> Which is the best way? Or what the optimization method of when to delete Zk
> connection?
>
>
> Thanks!
>
> Jieshan Bean
>
>
>
;
> 1. Create one HTable at a time, after the scanning, delete the connection and
> close the HTable.
> 2. Create one HTable at a time, after the scanning ,only close the HTable. So
> remain the zk connection.
>
> (Maybe I can share the HTable instance, but it wasn't what I want
o discuss
here)
Which is the best way? Or what the optimization method of when to delete Zk
connection?
Thanks!
Jieshan Bean