hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serega Sheypak <serega.shey...@gmail.com>
Subject Re: Re: Re: managing HConnection
Date Sun, 15 Feb 2015 20:26:25 GMT
I don't understand you.
There is a single instance of servlet per application.
Servlet.init method called once. Here you can instantiate HConnection and
solve ANY concurrency problems. HConnection is tread-safe. Just don't close
it and reuse.
Then just use HConnection to get HTable.

What problem you are trying to solve?


2015-02-15 9:23 GMT+03:00 David chen <c77_cn@163.com>:

> If sharing one HConnection for the whole application, when concurrency to
> access servlets increases to a threshold, whether or not it will influence
> the application performance?  But if increasing the sharing HConnection
> number, the problem will be relieved?

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