Hi all,

Right now I have a  java client program that accesses Hbase in multiple
threads for read / write.  Each thread creates its own instance of HTable of
the _same_ table.

I am looking into HTablePool class.  Not clear on if it is a correct/better
choice for accessing the _same_ table with multiple threads.

Is this a valid  / thread-safe ?

create HtablePool in 'main'
pass HTablePool instance to threads
each thread does a  'htablepool.get(table)'
    read / write to table
    'htablepool.put (table) '  when done
(all this is done within a single JVM)

thanks
Sujee Maniyam
http://sujee.net

Reply via email to