hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: [Discuss] HBase with multiple threads
Date Fri, 06 Jun 2014 22:45:07 GMT
See this javadoc at the beginning of HTable:

 * <p>This class is not thread safe for reads nor write.

Which hbase release are you using ?

Cheers


On Fri, Jun 6, 2014 at 3:01 PM, Hotec04 <hao.leng@dish.com> wrote:

> Hi HBase users,
>
> I try to implement multiple threads for HBase writing process, but looks
> like the table.flushCommites() breaks thread easily. Then I add a
> synchronized blocker for it, it flows but when I publish 50 messages, about
> 2 of them are missing...I am using HTablePool as well, so when every thread
> comes in, they grab one Htable but all Htables are using the same table.
>
> Any ideas on how to work with HTable put operation for multiple threads?
>
> Thank you!
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/Discuss-HBase-with-multiple-threads-tp4060081.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message