RE: Question about open table

2016-04-11 Thread Yi Jiang
Yes, sorry, I mean 1.x -Original Message- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Monday, April 11, 2016 9:51 AM To: user@hbase.apache.org Subject: Re: Question about open table bq. I am using hbase 2.x 2.0 has not been released yet. Probably you meant 1.x ? On Mon, Apr 11

Re: Question about open table

2016-04-11 Thread Ted Yu
s not expensive, then I am able to get and > close table in each request. > Jacky > > -Original Message- > From: Yu Li [mailto:car...@gmail.com] > Sent: Monday, April 11, 2016 12:05 AM > To: user@hbase.apache.org > Subject: Re: Question about open table > >

RE: Question about open table

2016-04-11 Thread Yi Jiang
To: user@hbase.apache.org Subject: Re: Question about open table If using HBase 1.x, please make sure to reuse the connection since creating connection is expensive. More specified, don't call {{ConnectionFactory.createConnection}} (the 1.x recommended way) multiple times but only once

Re: Question about open table

2016-04-10 Thread Yu Li
ed my > connection in constructor. > Jacky > > -Original Message- > From: Ted Yu [mailto:yuzhih...@gmail.com] > Sent: Saturday, April 09, 2016 11:03 AM > To: user@hbase.apache.org > Subject: Re: Question about open table > > Can you show the body of getConnection() ? &

RE: Question about open table

2016-04-10 Thread Yi Jiang
To: user@hbase.apache.org Subject: Re: Question about open table Can you show the body of getConnection() ? getTable() itself is not expensive - assuming the same underlying Connection. Cheers On Sat, Apr 9, 2016 at 7:18 AM, Yi Jiang <yi.ji...@ubisoft.com> wrote: > Hi, Guys >

Re: Question about open table

2016-04-09 Thread Ted Yu
Can you show the body of getConnection() ? getTable() itself is not expensive - assuming the same underlying Connection. Cheers On Sat, Apr 9, 2016 at 7:18 AM, Yi Jiang wrote: > Hi, Guys > I just have a question, I am trying to save the data into table in HBase > I am

Question about open table

2016-04-09 Thread Yi Jiang
Hi, Guys I just have a question, I am trying to save the data into table in HBase I am using Table table = getConnection().getTable(TableName.valueOf(tableName)); ... ... Table.close My question is that, is the "getTable" expensive? Shall I use that get table and close table in each saving? Or I