Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # dev >> Heads up, HTablePool will be deprecated in 0.94, 0.95/0.96, and removed in 0.98


+
lars hofhansl 2013-08-03, 04:29
+
Ted Yu 2013-08-03, 05:31
+
lars hofhansl 2013-08-03, 05:54
+
Ted Yu 2013-08-03, 14:20
+
Ted Yu 2013-08-04, 03:52
+
Nick Dimiduk 2013-08-04, 03:56
+
lars hofhansl 2013-08-04, 05:41
+
Ted Yu 2013-08-04, 23:27
+
lars hofhansl 2013-08-05, 02:23
+
Ted Yu 2013-08-05, 02:39
+
lars hofhansl 2013-08-05, 02:56
Copy link to this message
-
Re: Heads up, HTablePool will be deprecated in 0.94, 0.95/0.96, and removed in 0.98
On Sun, Aug 4, 2013 at 7:56 PM, lars hofhansl <[EMAIL PROTECTED]> wrote:

> Let's do a little quiz:
>
> HTable t1 = new HTable(conf);
> t1.close();
>
> // 1. Will the next line create a new HConnection behind the scenes (along
> with re-creating all the caches)?
> // (If so, it will be expensive, if not, when is the first HConnection
> actually released?)
> HTable t2 = new HTable(conf);
>
> // 2. how about this one?
> HTable t2 = new HTable(new Configuration(conf));
>
> // 3. or now?
> conf.setInt(HConstants.HBASE_CLIENT_PAUSE, 2000);
> HTable t3 = new HTable(conf);
>
> // 4. and now?
> conf.setInt(HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE_KEY, 1024000);
> HTable t4 = new HTable(conf);
>
> // 5. how many connections are opened now?
> t4.close();
>
> This stuff is convoluted and needlessly complicated. And this is not
> because the code is bad, but because the abstraction is simply inadequate.
> A client wants to connect to a cluster and then do some action on that
> cluster (via HTable as a convenience).
> If the cluster connection is implicit it leads to all of the above
> considerations.
>
>
Love the quiz.

+1 on your redo of our connection model (HConnection is a "cluster
connection".  I like that you have to get one of these first...)

St.Ack
+
Andrew Purtell 2013-08-05, 17:31
+
Gary Helmling 2013-08-05, 17:45
+
Suraj Varma 2013-08-05, 20:21
+
Enis Söztutar 2013-08-05, 21:30
+
Ted Yu 2013-08-05, 22:17
+
Andrew Purtell 2013-08-06, 00:27
+
lars hofhansl 2013-08-06, 00:51
+
Ted Yu 2013-08-05, 03:08
+
lars hofhansl 2013-08-05, 03:32
+
Jesse Yates 2013-08-03, 06:50
+
Nick Dimiduk 2013-08-04, 03:20
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB