Re: slow operation in postPut

2013-08-01 Thread Ted Yu
See 9.3.1.1. Connection Pooling in http://hbase.apache.org/book.html On Thu, Aug 1, 2013 at 6:32 AM, yonghu wrote: > If I want to use multi-thread with thread safe, which class should I use? > > > On Thu, Aug 1, 2013 at 3:08 PM, Ted Yu wrote: > > > HTable is not thread safe. > > > > On Aug 1, 2

Re: slow operation in postPut

2013-08-01 Thread yonghu
Use HTablePool instead. For more infor, http://hbase.apache.org/book/client.html. On Thu, Aug 1, 2013 at 3:32 PM, yonghu wrote: > If I want to use multi-thread with thread safe, which class should I use? > > > On Thu, Aug 1, 2013 at 3:08 PM, Ted Yu wrote: > >> HTable is not thread safe. >> >>

Re: slow operation in postPut

2013-08-01 Thread yonghu
If I want to use multi-thread with thread safe, which class should I use? On Thu, Aug 1, 2013 at 3:08 PM, Ted Yu wrote: > HTable is not thread safe. > > On Aug 1, 2013, at 5:58 AM, Pavel Hančar wrote: > > > Hello, > > I have a class extending BaseRegionObserver and I use the postPut method > t

Re: slow operation in postPut

2013-08-01 Thread Ted Yu
HTable is not thread safe. On Aug 1, 2013, at 5:58 AM, Pavel Hančar wrote: > Hello, > I have a class extending BaseRegionObserver and I use the postPut method to > run a slow procedure. I'd like to run more these procedures in more > threads. Is it possible to run more HTable.put(put) methods c

slow operation in postPut

2013-08-01 Thread Pavel Hančar
Hello, I have a class extending BaseRegionObserver and I use the postPut method to run a slow procedure. I'd like to run more these procedures in more threads. Is it possible to run more HTable.put(put) methods concurrently? I tried, but I have this error for each thread: Exception in thread "Thr