You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Vitaliy Semochkin <vi...@gmail.com> on 2020/01/26 13:43:55 UTC

why hbase recommends to use ForkJoinPool in a MultiThreadedCientExample?

Hi,

Does anyone know the reason why
https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/MultiThreadedClientExample.java
uses ForkJoinPool?
I checked the source of hbase client and haven't find any advantages
of using ForkJoinPool there.

Regards,
Vitaliy

Re: why hbase recommends to use ForkJoinPool in a MultiThreadedCientExample?

Posted by "张铎 (Duo Zhang)" <pa...@gmail.com>.
I think it is fine to use other thread pools as we use it as an
ExecutorService. You can just choose what you like.

Thanks.



Vitaliy Semochkin <vi...@gmail.com> 于2020年1月26日周日 下午9:44写道:

> Hi,
>
> Does anyone know the reason why
>
> https://github.com/apache/hbase/blob/master/hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/MultiThreadedClientExample.java
> uses ForkJoinPool?
> I checked the source of hbase client and haven't find any advantages
> of using ForkJoinPool there.
>
> Regards,
> Vitaliy
>